A lot of warnings with webpack uglify
Asked Answered
S

1

6

When I'm running webpack uglify plugin and I'm getting a lot of warnings from the stylus loader / css-loader. How can I resolve them? The webpack bundles it successfully.

   Condition always true [./~/style-loader!./~/css-loader!./~/stylus-loader!./app/<filename>.styl:10,0]
Soldier answered 17/2, 2016 at 12:37 Comment(2)
What kind of warnings? Please edit your question to contain a sample...Amine
its there... "Condition always true..."Soldier
P
4

That's normal -- by default Uglify tells you about the dead code that it strips out. If you don't want those "warnings" output, you can configure the plugin not to:

new Webpack.optimize.UglifyJsPlugin({ 
    compress: {
        warnings: false
    }
});
Prehension answered 17/2, 2016 at 16:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.