File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,9 @@ module.exports = {
144
144
] ,
145
145
include : paths . appSrc ,
146
146
} ,
147
- ...cssThemeExtracts . map ( ( themeExtractTextPlugin , index ) => {
148
- return {
149
- oneOf : [
147
+ ...cssThemeExtracts . reduce (
148
+ ( accumulator , themeExtractTextPlugin , index ) => {
149
+ return accumulator . concat (
150
150
// The notation here is somewhat confusing.
151
151
// "postcss" loader applies autoprefixer to our CSS.
152
152
// "css" loader resolves paths in CSS and adds assets as dependencies.
@@ -198,10 +198,11 @@ module.exports = {
198
198
] ,
199
199
} ) ,
200
200
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
201
- } ,
202
- ] ,
203
- } ;
204
- } ) ,
201
+ }
202
+ ) ;
203
+ } ,
204
+ [ ]
205
+ ) ,
205
206
{
206
207
// "oneOf" will traverse all following loaders until one will
207
208
// match the requirements. When no loader matches it will fall
You can’t perform that action at this time.
0 commit comments