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