These are chat archives for AngularClass/NG6-starter

17th
Feb 2016
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 08:24
good morning! I'm having a bit of difficulty implementing a prod/dev env variables. I was trying to use the 'config' node package but there is some error with loading json with webpack that i can't get past even if I install the json-loader for webpack. Do you guys have a good solution for this? ( How to implement prod/dev environment variables )
Sergey Protko
@fesor
Feb 17 2016 08:42
@icylabsDev aliases in webpack.config.js
just add alias for config module and resolve path to it depending on condition
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 10:34
ok, thanks will try
another question. I'm using the stylus for css, but I have a lot of css rules being loaded with the page, everytime I do like ``ìmport 'common.styl'``` that gets imported X times. That doesn't seem right I am forgetting something?
Screen Shot 2016-02-17 at 11.36.57.png
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 10:43
should I use ``` @require ´´´?
This message was deleted
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 11:51
hej guys I'm getting a lot of warnings in the Uglify from [./~/angular/angular.js] is that normal?
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 12:00
WARNING in vendor.bundle.js from UglifyJs
Side effects in initialization of unused variable _angularComponent2 [./app/app.js:13,4]
Side effects in initialization of unused variable _angularSortableView2 [./app/app.js:57,4]
Side effects in initialization of unused variable _ngFileUpload2 [./app/app.js:61,4]
Dropping unused variable result [./~/angular/angular.js:906,0]
Side effects in initialization of unused variable rawDocument [./~/angular/angular.js:5530,0]
Dropping unused variable logMsg [./~/angular/angular.js:15848,0]
Dropping unreachable code [./~/angular/angular.js:18563,0]
Dropping unused variable expression [./~/angular/angular.js:13858,0]
Side effects in initialization of unused variable value [./~/angular/angular.js:26393,0]
Dropping unused function includes [./~/angular/angular.js:804,0]
Dropping unused function nodesetLinkingFn [./~/angular/angular.js:8999,0]
Dropping unused function directiveLinkingFn [./~/angular/angular.js:9006,0]
Side effects in initialization of unused variable getterFnCacheDefault [./~/angular/angular.js:14193,0]
Side effects in initialization of unused variable getterFnCacheExpensive [./~/angular/angular.js:14194,0]
Dropping unused variable arrayMode [./~/angular-ui-router/release/angular-ui-router.js:787,0]
Side effects in initialization of unused variable ignoreUpdate [./~/angular-ui-router/release/angular-ui-router.js:2001,0]
Dropping unused variable url [./~/angular-ui-router/release/angular-ui-router.js:4132,0]
Dropping unused variable cfg [./~/angular-ui-router/release/angular-ui-router.js:909,15]
Dropping unused function indexBy [./~/angular-ui-router/release/angular-ui-router.js:165,0]
Dropping unused function pluck [./~/angular-ui-router/release/angular-ui-router.js:195,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/navbar/navbar.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/navbar/navbar.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/navbar/navbar.styl:7,0]
Side effects in initialization of unused variable sourceMap [./~/style-loader/addStyles.js:185,0]
Side effects in initialization of unused variable media [./~/style-loader/addStyles.js:203,0]
Condition always false [./~/style-loader/addStyles.js:23,0]
Dropping unreachable code [./~/style-loader/addStyles.js:24,0]
Side effects in initialization of unused variable exitAndDiscard_Modal [./app/common/actionbar/actionbar.controller.js:89,10]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/templates/modals/exitAndDiscard/exitAndDiscard.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/templates/modals/exitAndDiscard/exitAndDiscard.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/templates/modals/exitAndDiscard/exitAndDiscard.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/actionbar/actionbar.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/actionbar/actionbar.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/actionbar/actionbar.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/footer/footer.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/footer/footer.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/common/footer/footer.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/components/home/home.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/components/home/home.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-lo
this warnings seem to be in the css-loader and in angular
you guys can help me figure this out?
Diogo Afonso Barroso
@icylabsDev
Feb 17 2016 12:19
I even get the same with the code in the code in the repo
WARNING in app.bundle.js from UglifyJs
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/navbar/navbar.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/navbar/navbar.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/navbar/navbar.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/hero/hero.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/hero/hero.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/common/hero/hero.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/home/home.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/home/home.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/home/home.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/about/about.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/about/about.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/components/about/about.styl:7,0]
Condition always false [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/app.styl:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/app.styl:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/stylus-loader!./client/app/app.styl:7,0]

WARNING in vendor.bundle.js from UglifyJs
Dropping unused variable result [./~/angular/angular.js:891,0]
Side effects in initialization of unused variable rawDocument [./~/angular/angular.js:5782,0]
Dropping unused variable logMsg [./~/angular/angular.js:16614,0]
Dropping unreachable code [./~/angular/angular.js:19389,0]
Dropping unused variable expression [./~/angular/angular.js:14586,0]
Side effects in initialization of unused variable value [./~/angular/angular.js:27392,0]
Dropping unused function includes [./~/angular/angular.js:789,0]
Dropping unused function nodesetLinkingFn [./~/angular/angular.js:9672,0]
Dropping unused function directiveLinkingFn [./~/angular/angular.js:9679,0]
Dropping unused variable arrayMode [./~/angular-ui-router/release/angular-ui-router.js:791,0]
Side effects in initialization of unused variable ignoreUpdate [./~/angular-ui-router/release/angular-ui-router.js:2035,0]
Dropping unused variable cfg [./~/angular-ui-router/release/angular-ui-router.js:917,15]
Dropping unused function indexBy [./~/angular-ui-router/release/angular-ui-router.js:166,0]
Dropping unused function pluck [./~/angular-ui-router/release/angular-ui-router.js:196,0]
Side effects in initialization of unused variable sourceMap [./~/style-loader/addStyles.js:185,0]
Side effects in initialization of unused variable media [./~/style-loader/addStyles.js:203,0]
Condition always false [./~/style-loader/addStyles.js:23,0]
Dropping unreachable code [./~/style-loader/addStyles.js:24,0]
Condition always false [./~/style-loader!./~/css-loader!./~/normalize.css/normalize.css:10,0]
Dropping unreachable code [./~/style-loader!./~/css-loader!./~/normalize.css/normalize.css:12,0]
Side effects in initialization of unused variable update [./~/style-loader!./~/css-loader!./~/normal