File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,12 @@ module.exports = {
116
116
include : [ paths . appSrc , paths . appNodeModules ] ,
117
117
// "?-autoprefixer" disables autoprefixer in css-loader itself:
118
118
// https://github.com/webpack/css-loader/issues/281
119
- // We already have it thanks to postcss.
119
+ // We already have it thanks to postcss. We only pass this flag in
120
+ // production because "css" loader only enables autoprefixer-powered
121
+ // removal of unnecessary prefixes when Uglify plugin is enabled.
122
+ // Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets
123
+ // including CSS. This is confusing and will be removed in Webpack 2:
124
+ // https://github.com/webpack/webpack/issues/283
120
125
loader : ExtractTextPlugin . extract ( 'style' , 'css?-autoprefixer!postcss' )
121
126
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
122
127
} ,
You can’t perform that action at this time.
0 commit comments