Lots of warnings with webpack uglify

When I run the webpack uglify plugin and I get a lot of warnings from the stylus loader / css-loader. How can I resolve them? The web package successfully binds it.

Condition always true [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/<filename>.styl:10,0] 
+6
source share
1 answer

This is normal - by default, Uglify tells you about the dead code that it issues. If you do not want these "warnings" displayed, you can configure the plugin like this:

 new Webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }); 
+4
source

All Articles