Closed leMaik closed 8 years ago
great, can't believe i missed that. thanks!
at least this is a problem that goes away with webpack2's -p
flag :)
@peter-mouland This fix should probably be merged/rebased into the other branches. :) What does -p
do? Enable all production-only plugins that are disabled by default?
yeah, i'll get round to adding - updating the other branches takes a moment though to go through them all!
-p
is exactly as you say. in webpack v2 to you get uglify for free, and -p
turns it on. i'm sure it does others too.
Sounds great! Any ETA on webpack 2 support in react-lego?
All other branches have now been updated - including the webpack 2 branch, so the code comparisons should be easy to view now.
thanks again
concat
creates a new array, which was not used previously, resulting in UglifyJS not being enabled in production.In my project, I use webpack-isomorphic-tools, so not modifying the common configuration object but creating a new instance is required, so I prefer this approach instead of manipulating the array with
push
.