You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ng serve --environment=prod and ng serve --prod both correctly set the environment.production variable to true, but the latter dumps warnings to the console. Small problem, but it'd be best to not have console warnings on production builds.
OS?
Mac OSX El Capitan
Versions.
angular-cli: 1.0.0-beta.19-3
node: 6.8.1
os: darwin x64
Repro steps.
We created the project with the CLI after the Webpack updates were set in. We've recently started using the environment dev / prod variable.
To reproduce the console warnings, we just need to run ng serve --prod to see the console warnings and then run ng serve --environment=prod to not see any warnings.
The log given by the failure.
(when run with ng serve --prod):
WARNING in main.c46a4db88f1154faace8.bundle.js from UglifyJs
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:21,0]
Dropping unused function getTypeNameForDebugging [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:28,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:47,0]
Dropping unused function looseIdentical [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:100,0]
Dropping unused function print [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:106,0]
Dropping unused function warn [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:109,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/compiler/src/facade/lang.js:112,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/core/src/facade/lang.js:44,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/core/src/facade/lang.js:47,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/core/src/facade/lang.js:112,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/core/src/facade/lang.js:152,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/core/src/facade/lang.js:43,0]
Side effects in initialization of unused variable NumberWrapper [/Users/me/repo/~/@angular/core/src/facade/lang.js:67,0]
Side effects in initialization of unused variable INT_TYPE [/Users/me/repo/~/@angular/compiler/src/output/output_ast.js:89,0]
Side effects in initialization of unused variable CATCH_ERROR_VAR [/Users/me/repo/~/@angular/compiler/src/output/output_ast.js:475,0]
Side effects in initialization of unused variable CATCH_STACK_VAR [/Users/me/repo/~/@angular/compiler/src/output/output_ast.js:476,0]
Side effects in initialization of unused variable CommentStmt [/Users/me/repo/~/@angular/compiler/src/output/output_ast.js:624,0]
Side effects in initialization of unused variable RenderDebugInfo [/Users/me/repo/~/@angular/compiler/src/private_import_core.js:28,0]
Side effects in initialization of unused variable AnimationPlayer [/Users/me/repo/~/@angular/compiler/src/private_import_core.js:34,0]
Side effects in initialization of unused variable ViewMetadata [/Users/me/repo/~/@angular/compiler/src/private_import_core.js:48,0]
Dropping unused function setDOM [/Users/me/repo/~/@angular/platform-browser/src/dom/dom_adapter.js:12,0]
Side effects in initialization of unused variable CompileMetadataWithIdentifier [/Users/me/repo/~/@angular/compiler/src/compile_metadata.js:26,0]
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/forms/src/facade/lang.js:21,0]
Dropping unused function getTypeNameForDebugging [/Users/me/repo/~/@angular/forms/src/facade/lang.js:28,0]
Dropping unused function isBoolean [/Users/me/repo/~/@angular/forms/src/facade/lang.js:48,0]
Dropping unused function isNumber [/Users/me/repo/~/@angular/forms/src/facade/lang.js:51,0]
Dropping unused function isType [/Users/me/repo/~/@angular/forms/src/facade/lang.js:60,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/forms/src/facade/lang.js:67,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/forms/src/facade/lang.js:78,0]
Dropping unused function noop [/Users/me/repo/~/@angular/forms/src/facade/lang.js:81,0]
Dropping unused function stringify [/Users/me/repo/~/@angular/forms/src/facade/lang.js:82,0]
Dropping unused function serializeEnum [/Users/me/repo/~/@angular/forms/src/facade/lang.js:101,0]
Dropping unused function deserializeEnum [/Users/me/repo/~/@angular/forms/src/facade/lang.js:104,0]
Dropping unused function resolveEnumToken [/Users/me/repo/~/@angular/forms/src/facade/lang.js:107,0]
Dropping unused function getMapKey [/Users/me/repo/~/@angular/forms/src/facade/lang.js:242,0]
Dropping unused function normalizeBlank [/Users/me/repo/~/@angular/forms/src/facade/lang.js:245,0]
Dropping unused function print [/Users/me/repo/~/@angular/forms/src/facade/lang.js:254,0]
Dropping unused function warn [/Users/me/repo/~/@angular/forms/src/facade/lang.js:257,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/forms/src/facade/lang.js:290,0]
Dropping unused function evalExpression [/Users/me/repo/~/@angular/forms/src/facade/lang.js:327,0]
Dropping unused function escape [/Users/me/repo/~/@angular/forms/src/facade/lang.js:343,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/forms/src/facade/lang.js:346,0]
Side effects in initialization of unused variable Math [/Users/me/repo/~/@angular/forms/src/facade/lang.js:34,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/forms/src/facade/lang.js:66,0]
Side effects in initialization of unused variable StringJoiner [/Users/me/repo/~/@angular/forms/src/facade/lang.js:178,0]
Side effects in initialization of unused variable NumberWrapper [/Users/me/repo/~/@angular/forms/src/facade/lang.js:187,0]
Side effects in initialization of unused variable RegExp [/Users/me/repo/~/@angular/forms/src/facade/lang.js:228,0]
Side effects in initialization of unused variable FunctionWrapper [/Users/me/repo/~/@angular/forms/src/facade/lang.js:229,0]
Side effects in initialization of unused variable Json [/Users/me/repo/~/@angular/forms/src/facade/lang.js:261,0]
Side effects in initialization of unused variable DateWrapper [/Users/me/repo/~/@angular/forms/src/facade/lang.js:271,0]
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/common/src/facade/lang.js:21,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/common/src/facade/lang.js:44,0]
Dropping unused function looseIdentical [/Users/me/repo/~/@angular/common/src/facade/lang.js:100,0]
Dropping unused function print [/Users/me/repo/~/@angular/common/src/facade/lang.js:106,0]
Dropping unused function warn [/Users/me/repo/~/@angular/common/src/facade/lang.js:109,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/common/src/facade/lang.js:112,0]
Dropping unused function isPrimitive [/Users/me/repo/~/@angular/common/src/facade/lang.js:149,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/common/src/facade/lang.js:152,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/common/src/facade/lang.js:43,0]
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/http/src/facade/lang.js:21,0]
Dropping unused function getTypeNameForDebugging [/Users/me/repo/~/@angular/http/src/facade/lang.js:28,0]
Dropping unused function isBoolean [/Users/me/repo/~/@angular/http/src/facade/lang.js:48,0]
Dropping unused function isNumber [/Users/me/repo/~/@angular/http/src/facade/lang.js:51,0]
Dropping unused function isFunction [/Users/me/repo/~/@angular/http/src/facade/lang.js:57,0]
Dropping unused function isType [/Users/me/repo/~/@angular/http/src/facade/lang.js:60,0]
Dropping unused function isStringMap [/Users/me/repo/~/@angular/http/src/facade/lang.js:63,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/http/src/facade/lang.js:67,0]
Dropping unused function isPromise [/Users/me/repo/~/@angular/http/src/facade/lang.js:70,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/http/src/facade/lang.js:78,0]
Dropping unused function noop [/Users/me/repo/~/@angular/http/src/facade/lang.js:81,0]
Dropping unused function stringify [/Users/me/repo/~/@angular/http/src/facade/lang.js:82,0]
Dropping unused function serializeEnum [/Users/me/repo/~/@angular/http/src/facade/lang.js:101,0]
Dropping unused function deserializeEnum [/Users/me/repo/~/@angular/http/src/facade/lang.js:104,0]
Dropping unused function resolveEnumToken [/Users/me/repo/~/@angular/http/src/facade/lang.js:107,0]
Dropping unused function looseIdentical [/Users/me/repo/~/@angular/http/src/facade/lang.js:237,0]
Dropping unused function getMapKey [/Users/me/repo/~/@angular/http/src/facade/lang.js:242,0]
Dropping unused function normalizeBlank [/Users/me/repo/~/@angular/http/src/facade/lang.js:245,0]
Dropping unused function normalizeBool [/Users/me/repo/~/@angular/http/src/facade/lang.js:248,0]
Dropping unused function print [/Users/me/repo/~/@angular/http/src/facade/lang.js:254,0]
Dropping unused function warn [/Users/me/repo/~/@angular/http/src/facade/lang.js:257,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/http/src/facade/lang.js:290,0]
Dropping unused function evalExpression [/Users/me/repo/~/@angular/http/src/facade/lang.js:327,0]
Dropping unused function isPrimitive [/Users/me/repo/~/@angular/http/src/facade/lang.js:337,0]
Dropping unused function hasConstructor [/Users/me/repo/~/@angular/http/src/facade/lang.js:340,0]
Dropping unused function escape [/Users/me/repo/~/@angular/http/src/facade/lang.js:343,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/http/src/facade/lang.js:346,0]
Side effects in initialization of unused variable Math [/Users/me/repo/~/@angular/http/src/facade/lang.js:34,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/http/src/facade/lang.js:66,0]
Side effects in initialization of unused variable StringJoiner [/Users/me/repo/~/@angular/http/src/facade/lang.js:178,0]
Side effects in initialization of unused variable NumberWrapper [/Users/me/repo/~/@angular/http/src/facade/lang.js:187,0]
Side effects in initialization of unused variable RegExp [/Users/me/repo/~/@angular/http/src/facade/lang.js:228,0]
Side effects in initialization of unused variable FunctionWrapper [/Users/me/repo/~/@angular/http/src/facade/lang.js:229,0]
Side effects in initialization of unused variable DateWrapper [/Users/me/repo/~/@angular/http/src/facade/lang.js:271,0]
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:21,0]
Dropping unused function getTypeNameForDebugging [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:28,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:44,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:47,0]
Dropping unused function looseIdentical [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:100,0]
Dropping unused function print [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:106,0]
Dropping unused function warn [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:109,0]
Dropping unused function isPrimitive [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:149,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:152,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:43,0]
Side effects in initialization of unused variable NumberWrapper [/Users/me/repo/~/@angular/platform-browser/src/facade/lang.js:67,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/utils/url.js:6,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/utils/url.js:7,0]
Dropping unused function isListLikeIterable [/Users/me/repo/~/@angular/compiler/src/facade/collection.js:144,0]
Dropping unused function areIterablesEqual [/Users/me/repo/~/@angular/compiler/src/facade/collection.js:151,0]
Dropping unused function iterateListLike [/Users/me/repo/~/@angular/compiler/src/facade/collection.js:165,0]
Dropping unused function isListLikeIterable [/Users/me/repo/~/@angular/forms/src/facade/collection.js:298,0]
Dropping unused function areIterablesEqual [/Users/me/repo/~/@angular/forms/src/facade/collection.js:305,0]
Dropping unused function iterateListLike [/Users/me/repo/~/@angular/forms/src/facade/collection.js:319,0]
Side effects in initialization of unused variable SetWrapper [/Users/me/repo/~/@angular/forms/src/facade/collection.js:352,0]
Condition left of && always true [/Users/me/repo/~/json3/lib/json3.js:5,0]
Dropping unused function first [/Users/me/repo/~/@angular/router/src/utils/collection.js:50,0]
Dropping unused function and [/Users/me/repo/~/@angular/router/src/utils/collection.js:56,0]
Dropping unused function camelCaseToDashCase [/Users/me/repo/~/@angular/compiler/src/util.js:11,0]
Dropping unused variable CAMEL_CASE_REGEXP [/Users/me/repo/~/@angular/compiler/src/util.js:10,0]
Dropping unused function equalSegments [/Users/me/repo/~/@angular/router/src/url_tree.js:211,0]
Side effects in initialization of unused variable RenderTypes [/Users/me/repo/~/@angular/compiler/src/config.js:43,0]
Dropping unreachable code [/Users/me/repo/~/@angular/core/src/util/decorators.js:247,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/core/src/util/decorators.js:247,0]
Dropping unreachable code [/Users/me/repo/~/@angular/core/src/util/decorators.js:274,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/core/src/util/decorators.js:274,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/lib/ajax-based.js:9,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/lib/ajax-based.js:10,0]
Dropping unused function createUrlResolverWithoutPackagePrefix [/Users/me/repo/~/@angular/compiler/src/url_resolver.js:14,0]
Dropping unused function createOfflineCompileUrlResolver [/Users/me/repo/~/@angular/compiler/src/url_resolver.js:17,0]
Dropping unused function _enumExpression [/Users/me/repo/~/@angular/compiler/src/view_compiler/constants.js:11,0]
Side effects in initialization of unused variable ChangeDetectionStrategyEnum [/Users/me/repo/~/@angular/compiler/src/view_compiler/constants.js:30,0]
Side effects in initialization of unused variable Connection [/Users/me/repo/~/@angular/http/src/interfaces.js:26,0]
Dropping unused variable FirebaseRef [/Users/me/repo/~/angularfire2/tokens.js:7,0]
Dropping unused variable FirebaseUrl [/Users/me/repo/~/angularfire2/tokens.js:8,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/utils/iframe.js:9,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/utils/iframe.js:10,0]
Side effects in initialization of unused variable wtfStartTimeRange [/Users/me/repo/~/@angular/core/src/profile/profile.js:70,0]
Side effects in initialization of unused variable wtfEndTimeRange [/Users/me/repo/~/@angular/core/src/profile/profile.js:77,0]
Side effects in initialization of unused variable HTMLCollection [/Users/me/repo/~/@angular/forms/src/directives/select_multiple_control_value_accessor.js:30,0]
Dropping unused variable SELECT_DIRECTIVES [/Users/me/repo/~/@angular/forms/src/directives/select_multiple_control_value_accessor.js:198,0]
Dropping unused function isControl [/Users/me/repo/~/@angular/forms/src/model.js:36,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/receiver/xhr.js:8,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/receiver/xhr.js:9,0]
Dropping unused variable $PIPE [/Users/me/repo/~/@angular/compiler/src/chars.js:62,0]
Dropping unused variable $TILDA [/Users/me/repo/~/@angular/compiler/src/chars.js:63,0]
Dropping unused variable $AT [/Users/me/repo/~/@angular/compiler/src/chars.js:64,0]
Side effects in initialization of unused variable AstTransformer [/Users/me/repo/~/@angular/compiler/src/expression_parser/ast.js:421,0]
Dropping unreachable code [/Users/me/repo/~/@angular/compiler/src/i18n/digest.js:87,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/compiler/src/i18n/digest.js:87,0]
Dropping unreachable code [/Users/me/repo/~/@angular/compiler/src/metadata_resolver.js:323,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/compiler/src/metadata_resolver.js:323,0]
Non-strict equality against boolean: != true [/Users/me/repo/~/@angular/compiler/src/ml_parser/html_tags.js:39,0]
Side effects in initialization of unused variable OutputEmitter [/Users/me/repo/~/@angular/compiler/src/output/abstract_emitter.js:14,0]
Dropping unreachable code [/Users/me/repo/~/@angular/compiler/src/output/class_builder.js:26,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/compiler/src/output/class_builder.js:26,0]
Dropping unused function destroyPlatform [/Users/me/repo/~/@angular/core/src/application_ref.js:117,0]
Non-strict equality against boolean: != false [/Users/me/repo/~/@angular/forms/src/directives/ng_model.js:184,0]
Side effects in initialization of unused variable ELEMENT_PROBE_PROVIDERS_PROD_MODE [/Users/me/repo/~/@angular/platform-browser/src/dom/debug/ng_probe.js:59,0]
Dropping unused variable SAFE_SRCSET_PATTERN [/Users/me/repo/~/@angular/platform-browser/src/security/url_sanitizer.js:38,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/sender/xdr.js:11,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/sender/xdr.js:12,0]
Dropping unused function areIterablesEqual [/Users/me/repo/~/@angular/common/src/facade/collection.js:151,0]
Dropping unused function iterateListLike [/Users/me/repo/~/@angular/common/src/facade/collection.js:165,0]
Side effects in initialization of unused variable MapWrapper [/Users/me/repo/~/@angular/common/src/facade/collection.js:30,0]
Side effects in initialization of unused variable StringMapWrapper [/Users/me/repo/~/@angular/common/src/facade/collection.js:47,0]
Side effects in initialization of unused variable matches [/Users/me/repo/~/@angular/common/src/facade/intl.js:163,0]
Side effects in initialization of unused variable strCases [/Users/me/repo/~/@angular/compiler/src/i18n/serializers/xtb.js:149,0]
Side effects in initialization of unused variable TypeScriptEmitter [/Users/me/repo/~/@angular/compiler/src/output/ts_emitter.js:37,0]
Dropping unused function animate [/Users/me/repo/~/@angular/core/src/animation/metadata.js:235,0]
Dropping unused function group [/Users/me/repo/~/@angular/core/src/animation/metadata.js:282,0]
Dropping unused function sequence [/Users/me/repo/~/@angular/core/src/animation/metadata.js:324,0]
Dropping unused function style [/Users/me/repo/~/@angular/core/src/animation/metadata.js:374,0]
Dropping unused function state [/Users/me/repo/~/@angular/core/src/animation/metadata.js:450,0]
Dropping unused function keyframes [/Users/me/repo/~/@angular/core/src/animation/metadata.js:502,0]
Dropping unused function transition [/Users/me/repo/~/@angular/core/src/animation/metadata.js:609,0]
Dropping unused function trigger [/Users/me/repo/~/@angular/core/src/animation/metadata.js:669,0]
Side effects in initialization of unused variable AnimationEntryMetadata [/Users/me/repo/~/@angular/core/src/animation/metadata.js:25,0]
Side effects in initialization of unused variable AnimationSequenceMetadata [/Users/me/repo/~/@angular/core/src/animation/metadata.js:150,0]
Dropping unused function asNativeElements [/Users/me/repo/~/@angular/core/src/debug/debug_node.js:157,0]
Dropping unused function getAllDebugNodes [/Users/me/repo/~/@angular/core/src/debug/debug_node.js:190,0]
Side effects in initialization of unused variable NgModuleRef [/Users/me/repo/~/@angular/core/src/linker/ng_module_factory.js:25,0]
Dropping unused function clearModulesForTest [/Users/me/repo/~/@angular/core/src/linker/ng_module_factory_loader.js:29,0]
Dropping unused function getModuleFactory [/Users/me/repo/~/@angular/core/src/linker/ng_module_factory_loader.js:38,0]
Side effects in initialization of unused variable EmbeddedViewRef [/Users/me/repo/~/@angular/core/src/linker/view_ref.js:83,0]
Side effects in initialization of unused variable OnChanges [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:41,0]
Side effects in initialization of unused variable OnInit [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:61,0]
Side effects in initialization of unused variable DoCheck [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:87,0]
Side effects in initialization of unused variable OnDestroy [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:105,0]
Side effects in initialization of unused variable AfterContentInit [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:122,0]
Side effects in initialization of unused variable AfterContentChecked [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:137,0]
Side effects in initialization of unused variable AfterViewInit [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:153,0]
Side effects in initialization of unused variable AfterViewChecked [/Users/me/repo/~/@angular/core/src/metadata/lifecycle_hooks.js:168,0]
Dropping unused function areIterablesEqual [/Users/me/repo/~/@angular/http/src/facade/collection.js:305,0]
Side effects in initialization of unused variable SetWrapper [/Users/me/repo/~/@angular/http/src/facade/collection.js:352,0]
Side effects in initialization of unused variable MdDialogConfig [/Users/me/repo/~/@angular/material/dialog/dialog-config.js:4,0]
Side effects in initialization of unused variable MdSnackBarConfig [/Users/me/repo/~/@angular/material/snack-bar/snack-bar-config.js:1,0]
Dropping unused function scheduleMicroTask [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:21,0]
Dropping unused function getTypeNameForDebugging [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:28,0]
Dropping unused function isBlank [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:45,0]
Dropping unused function isBoolean [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:48,0]
Dropping unused function isNumber [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:51,0]
Dropping unused function isString [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:54,0]
Dropping unused function isFunction [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:57,0]
Dropping unused function isType [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:60,0]
Dropping unused function isStringMap [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:63,0]
Dropping unused function isStrictStringMap [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:67,0]
Dropping unused function isPromise [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:70,0]
Dropping unused function isArray [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:75,0]
Dropping unused function isDate [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:78,0]
Dropping unused function noop [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:81,0]
Dropping unused function stringify [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:82,0]
Dropping unused function serializeEnum [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:101,0]
Dropping unused function deserializeEnum [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:104,0]
Dropping unused function resolveEnumToken [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:107,0]
Dropping unused function looseIdentical [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:237,0]
Dropping unused function getMapKey [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:242,0]
Dropping unused function normalizeBlank [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:245,0]
Dropping unused function normalizeBool [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:248,0]
Dropping unused function isJsObject [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:251,0]
Dropping unused function print [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:254,0]
Dropping unused function warn [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:257,0]
Dropping unused function setValueOnPath [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:290,0]
Dropping unused function getSymbolIterator [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:308,0]
Dropping unused function evalExpression [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:327,0]
Dropping unused function isPrimitive [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:337,0]
Dropping unused function hasConstructor [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:340,0]
Dropping unused function escape [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:343,0]
Dropping unused function escapeRegExp [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:346,0]
Side effects in initialization of unused variable Math [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:34,0]
Side effects in initialization of unused variable STRING_MAP_PROTO [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:66,0]
Side effects in initialization of unused variable StringWrapper [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:110,0]
Side effects in initialization of unused variable StringJoiner [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:178,0]
Side effects in initialization of unused variable NumberWrapper [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:187,0]
Side effects in initialization of unused variable RegExp [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:228,0]
Side effects in initialization of unused variable FunctionWrapper [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:229,0]
Side effects in initialization of unused variable Json [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:261,0]
Side effects in initialization of unused variable DateWrapper [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:271,0]
Dropping unused variable _symbolIterator [/Users/me/repo/~/@angular/platform-browser-dynamic/src/facade/lang.js:307,0]
Side effects in initialization of unused variable platformBrowser [/Users/me/repo/~/@angular/platform-browser/src/browser.js:43,0]
Dropping unused function isListLikeIterable [/Users/me/repo/~/@angular/platform-browser/src/facade/collection.js:144,0]
Dropping unused function areIterablesEqual [/Users/me/repo/~/@angular/platform-browser/src/facade/collection.js:151,0]
Dropping unused function iterateListLike [/Users/me/repo/~/@angular/platform-browser/src/facade/collection.js:165,0]
Side effects in initialization of unused variable MapWrapper [/Users/me/repo/~/@angular/platform-browser/src/facade/collection.js:30,0]
Side effects in initialization of unused variable RenderDebugInfo [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:9,0]
Side effects in initialization of unused variable ReflectionCapabilities [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:10,0]
Side effects in initialization of unused variable reflector [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:12,0]
Side effects in initialization of unused variable AnimationPlayer [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:14,0]
Side effects in initialization of unused variable AnimationSequencePlayer [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:15,0]
Side effects in initialization of unused variable AnimationGroupPlayer [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:16,0]
Side effects in initialization of unused variable AnimationKeyframe [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:17,0]
Side effects in initialization of unused variable AnimationStyles [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:18,0]
Side effects in initialization of unused variable prepareFinalAnimationStyles [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:19,0]
Side effects in initialization of unused variable balanceAnimationKeyframes [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:20,0]
Side effects in initialization of unused variable clearStyles [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:21,0]
Side effects in initialization of unused variable collectAndResolveStyles [/Users/me/repo/~/@angular/platform-browser/src/private_import_core.js:22,0]
Side effects in initialization of unused variable pathLocationStrategy [/Users/me/repo/~/@angular/router/src/router_module.js:33,0]
Side effects in initialization of unused variable hashLocationStrategy [/Users/me/repo/~/@angular/router/src/router_module.js:37,0]
Side effects in initialization of unused variable option [/Users/me/repo/~/angularfire2/database/query_observable.js:63,0]
Side effects in initialization of unused variable option [/Users/me/repo/~/angularfire2/database/query_observable.js:86,0]
Dropping unused function hasObservableProperties [/Users/me/repo/~/angularfire2/database/query_observable.js:175,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/info-ajax.js:10,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/info-ajax.js:11,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/browser/abstract-xhr.js:11,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/browser/abstract-xhr.js:12,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/iframe.js:22,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/iframe.js:23,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/lib/sender-receiver.js:10,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/lib/sender-receiver.js:11,0]
Condition always true [(webpack)-dev-server/client?http:/localhost:4200/:21,0]
Dropping unreachable code [(webpack)-dev-server/client?http:/localhost:4200/:24,1]
Declarations in unreachable code! [(webpack)-dev-server/client?http:/localhost:4200/:26,0]
Dropping unused function getCurrentScriptSource [(webpack)-dev-server/client?http:/localhost:4200/:6,0]
Dropping unused variable scriptHost [(webpack)-dev-server/client?http:/localhost:4200/:26,0]
Dropping unused function unimplemented [/Users/me/repo/~/@angular/common/src/facade/errors.js:13,0]
Side effects in initialization of unused variable WrappedError [/Users/me/repo/~/@angular/common/src/facade/errors.js:50,0]
Side effects in initialization of unused variable OfflineCompiler [/Users/me/repo/~/@angular/compiler/src/offline_compiler.js:80,0]
Side effects in initialization of unused variable ImportGenerator [/Users/me/repo/~/@angular/compiler/src/output/path_util.js:13,0]
Dropping unused function convertStmtIntoExpression [/Users/me/repo/~/@angular/compiler/src/view_compiler/event_binder.js:135,0]
Side effects in initialization of unused variable NOT_THROW_ON_CHANGES [/Users/me/repo/~/@angular/compiler/src/view_compiler/lifecycle_binder.js:12,0]
Dropping unused variable FORM_DIRECTIVES [/Users/me/repo/~/@angular/forms/src/directives.js:65,0]
Dropping unused variable REACTIVE_FORM_DIRECTIVES [/Users/me/repo/~/@angular/forms/src/directives.js:69,0]
Side effects in initialization of unused variable JsonpModule [/Users/me/repo/~/@angular/http/src/http_module.js:57,0]
Non-strict equality against boolean: != false [/Users/me/repo/~/@angular/material/button/button.js:133,0]
Side effects in initialization of unused variable MdCoreModule [/Users/me/repo/~/@angular/material/core/core.js:52,0]
Side effects in initialization of unused variable RESOURCE_CACHE_PROVIDER [/Users/me/repo/~/@angular/platform-browser-dynamic/src/platform-browser-dynamic.js:16,0]
Side effects in initialization of unused variable __platform_browser_dynamic_private__ [/Users/me/repo/~/@angular/platform-browser-dynamic/src/private_export.js:3,0]
Side effects in initialization of unused variable getDOM [/Users/me/repo/~/@angular/platform-browser-dynamic/src/private_import_platform-browser.js:10,0]
Dropping unused function enableDebugTools [/Users/me/repo/~/@angular/platform-browser/src/browser/tools/tools.js:24,0]
Dropping unused function disableDebugTools [/Users/me/repo/~/@angular/platform-browser/src/browser/tools/tools.js:33,0]
Side effects in initialization of unused variable context [/Users/me/repo/~/@angular/platform-browser/src/browser/tools/tools.js:10,0]
Side effects in initialization of unused variable By [/Users/me/repo/~/@angular/platform-browser/src/dom/debug/by.js:15,0]
Side effects in initialization of unused variable document [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:13,0]
Side effects in initialization of unused variable location [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:14,0]
Side effects in initialization of unused variable gc [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:15,0]
Side effects in initialization of unused variable performance [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:16,0]
Side effects in initialization of unused variable Event [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:17,0]
Side effects in initialization of unused variable MouseEvent [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:18,0]
Side effects in initialization of unused variable KeyboardEvent [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:19,0]
Side effects in initialization of unused variable EventTarget [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:20,0]
Side effects in initialization of unused variable History [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:21,0]
Side effects in initialization of unused variable Location [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:22,0]
Side effects in initialization of unused variable EventListener [/Users/me/repo/~/@angular/platform-browser/src/facade/browser.js:23,0]
Dropping unreachable code [/Users/me/repo/~/@angular/router/src/apply_redirects.js:72,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/router/src/apply_redirects.js:72,0]
Dropping unreachable code [/Users/me/repo/~/@angular/router/src/apply_redirects.js:96,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/router/src/apply_redirects.js:96,0]
Dropping unreachable code [/Users/me/repo/~/@angular/router/src/create_url_tree.js:171,0]
Declarations in unreachable code! [/Users/me/repo/~/@angular/router/src/create_url_tree.js:171,0]
Side effects in initialization of unused variable __router_private__ [/Users/me/repo/~/@angular/router/src/private_export.js:11,0]
Dropping unused variable defaultFirebase [/Users/me/repo/~/angularfire2/angularfire2.js:61,0]
Dropping unused variable firebaseAuthConfig [/Users/me/repo/~/angularfire2/auth/auth.js:15,0]
Side effects in initialization of unused variable FirebaseDatabase [/Users/me/repo/~/angularfire2/database/database.js:39,0]
Dropping unused function onChildUpdated [/Users/me/repo/~/angularfire2/database/firebase_list_factory.js:161,0]
Side effects in initialization of unused variable query [/Users/me/repo/~/angularfire2/database/firebase_object_factory.js:5,31]
Condition always true [/Users/me/repo/~/hammerjs/hammer.js:2633,0]
Dropping unreachable code [/Users/me/repo/~/hammerjs/hammer.js:2637,1]
Condition always true [/Users/me/repo/~/punycode/punycode.js:511,0]
Dropping unreachable code [/Users/me/repo/~/punycode/punycode.js:518,2]
Side effects in initialization of unused variable freeExports [/Users/me/repo/~/punycode/punycode.js:5,0]
Side effects in initialization of unused variable freeModule [/Users/me/repo/~/punycode/punycode.js:7,0]
Dropping unused variable key [/Users/me/repo/~/punycode/punycode.js:56,0]
Dropping unused variable curPlaceHolder [/Users/me/repo/~/socket.io-parser/binary.js:63,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/iframe-bootstrap.js:13,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/iframe-bootstrap.js:14,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/info-iframe.js:12,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/info-iframe.js:13,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/info-receiver.js:15,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/info-receiver.js:16,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/main.js:25,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/main.js:26,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/lib/buffered-sender.js:8,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/lib/buffered-sender.js:9,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/lib/polling.js:8,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/lib/polling.js:9,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/receiver/eventsource.js:9,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/receiver/eventsource.js:10,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/receiver/htmlfile.js:11,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/receiver/htmlfile.js:12,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/receiver/jsonp.js:12,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/receiver/jsonp.js:13,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/sender/jsonp.js:8,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/sender/jsonp.js:9,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/transport/websocket.js:11,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/transport/websocket.js:12,0]
Condition always false [/Users/me/repo/~/sockjs-client/lib/utils/transport.js:4,0]
Dropping unreachable code [/Users/me/repo/~/sockjs-client/lib/utils/transport.js:5,0]
Condition always true [/Users/me/repo/~/wtf-8/wtf-8.js:213,0]
Dropping unreachable code [/Users/me/repo/~/wtf-8/wtf-8.js:220,2]
Declarations in unreachable code! [/Users/me/repo/~/wtf-8/wtf-8.js:224,0]
Declarations in unreachable code! [/Users/me/repo/~/wtf-8/wtf-8.js:226,0]
Side effects in initialization of unused variable freeModule [/Users/me/repo/~/wtf-8/wtf-8.js:8,0]
Dropping unused variable object [/Users/me/repo/~/wtf-8/wtf-8.js:224,0]
Dropping unused variable hasOwnProperty [/Users/me/repo/~/wtf-8/wtf-8.js:225,0]
Dropping unused variable key [/Users/me/repo/~/wtf-8/wtf-8.js:226,0]
Condition always true [/Users/me/repo/~/zone.js/dist/zone.js:9,0]
Non-strict equality against boolean: == false [/Users/me/repo/~/zone.js/dist/zone.js:1394,0]
Condition left of || always false [/Users/me/repo/~/zone.js/dist/zone.js:538,0]
Condition left of || always false [/Users/me/repo/~/zone.js/dist/zone.js:541,0]
Side effects in initialization of unused variable Zone$1 [/Users/me/repo/~/zone.js/dist/zone.js:23,0]
WARNING in styles.634812c6c6c37e3d547d.bundle.js from UglifyJs
Condition always false [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/bellhapp-brand.sass:10,0]
Dropping unreachable code [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/bellhapp-brand.sass:12,0]
Side effects in initialization of unused variable update [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/bellhapp-brand.sass:7,0]
Condition always false [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/styles.sass:10,0]
Dropping unreachable code [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/styles.sass:12,0]
Side effects in initialization of unused variable update [/Users/me/repo/~/style-loader!/Users/me/repo/~/css-loader!/Users/me/repo/~/postcss-loader!/Users/me/repo/~/sass-loader!/Users/me/repo/src/styles.sass:7,0]
The text was updated successfully, but these errors were encountered:
Running
ng serve --environment=prod
andng serve --prod
both correctly set the environment.production variable to true, but the latter dumps warnings to the console. Small problem, but it'd be best to not have console warnings on production builds.OS?
Versions.
Repro steps.
The log given by the failure.
(when run with
ng serve --prod
):The text was updated successfully, but these errors were encountered: