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
Hi, thanks for spotting this. I'm currently facing the same issue when trying to circumvent the default webpack -p behavior. Indeed, webpack -p seems to be minifying the CSS in a destructive way by default because of cssnano default behavior (to the best of my understanding).
Related: a default behavior of the webpack -p flag could be that webpack unsures a non-destructive minification of css (default to cssnano safe mode, with aggressive/destructive mode being optional/explicit, maybe via a --optimize-aggressive flag). Maybe this could be better raised as a separate issue on the webpack repository.
A safe option was indeed added in css-nano (see cssnano/cssnano#59 merged and available in v3.2.0).
css-loader?{"sourceMap":true,"minimize":true,"safe":true}
lib/processCss.js:157 should use
Object.assign
instead ofObject.create
.minimizeOptions
will be:minimizeOptions
will be:cc @sokra
The text was updated successfully, but these errors were encountered: