File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ module.exports = {
137137 // in development "style" loader enables hot editing of CSS.
138138 {
139139 test : / \. c s s $ / ,
140- loader : 'style!css!postcss'
140+ loader : 'style!css?importLoaders=1 !postcss'
141141 } ,
142142 // JSON is not enabled by default in Webpack but both Node and Browserify
143143 // allow it implicitly so we also enable it.
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ module.exports = {
150150 // Webpack 1.x uses Uglify plugin as a signal to minify *all* the assets
151151 // including CSS. This is confusing and will be removed in Webpack 2:
152152 // https://github.com/webpack/webpack/issues/283
153- loader : ExtractTextPlugin . extract ( 'style' , 'css?-autoprefixer!postcss' )
153+ loader : ExtractTextPlugin . extract ( 'style' , 'css?importLoaders=1& -autoprefixer!postcss' )
154154 // Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
155155 } ,
156156 // JSON is not enabled by default in Webpack but both Node and Browserify
You can’t perform that action at this time.
0 commit comments