File tree 1 file changed +4
-2
lines changed
packages/react-scripts/config 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ module.exports = function(webpackEnv) {
141
141
sourceMap : true ,
142
142
} ,
143
143
}
144
+ // ** STOP ** Are you adding a new loader after css-loader?
145
+ // Make sure to increment importLoaders appropriately where getStyleLoaders is called.
144
146
) ;
145
147
}
146
148
return loaders ;
@@ -528,7 +530,7 @@ module.exports = function(webpackEnv) {
528
530
exclude : sassModuleRegex ,
529
531
use : getStyleLoaders (
530
532
{
531
- importLoaders : 2 ,
533
+ importLoaders : 3 ,
532
534
sourceMap : isEnvProduction && shouldUseSourceMap ,
533
535
} ,
534
536
'sass-loader'
@@ -545,7 +547,7 @@ module.exports = function(webpackEnv) {
545
547
test : sassModuleRegex ,
546
548
use : getStyleLoaders (
547
549
{
548
- importLoaders : 2 ,
550
+ importLoaders : 3 ,
549
551
sourceMap : isEnvProduction && shouldUseSourceMap ,
550
552
modules : {
551
553
getLocalIdent : getCSSModuleLocalIdent ,
You can’t perform that action at this time.
0 commit comments