Skip to content

Commit e530598

Browse files
authored
Fix sass importLoaders (#8281)
1 parent dd0df73 commit e530598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ module.exports = function(webpackEnv) {
531531
exclude: sassModuleRegex,
532532
use: getStyleLoaders(
533533
{
534-
importLoaders: 2,
534+
importLoaders: 3,
535535
sourceMap: isEnvProduction && shouldUseSourceMap,
536536
},
537537
'sass-loader'
@@ -548,7 +548,7 @@ module.exports = function(webpackEnv) {
548548
test: sassModuleRegex,
549549
use: getStyleLoaders(
550550
{
551-
importLoaders: 2,
551+
importLoaders: 3,
552552
sourceMap: isEnvProduction && shouldUseSourceMap,
553553
modules: {
554554
getLocalIdent: getCSSModuleLocalIdent,

0 commit comments

Comments
 (0)