Skip to content

Commit 31d309d

Browse files
committed
fix: importLoaders should be a number when cssModules are used
1 parent 9201e05 commit 31d309d

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/en/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CSS Modules are processed via [css-loader](https://github.com/webpack/css-loader
8181
``` js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```

docs/ja/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CSS モジュールは [css-loader](https://github.com/webpack/css-loader) に
8181
``` js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```

docs/kr/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CSS 모듈은 [css-loader](https://github.com/webpack/css-loader)를 통해 처
8181
``` js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```

docs/pt_BR/features/css-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Módulos CSS são processados via [css-loader](https://github.com/webpack/css-lo
8181
```js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```
@@ -114,4 +114,4 @@ module: {
114114
}
115115
]
116116
}
117-
```
117+
```

docs/ru/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CSS-модули обрабатываются с помощью [css-loader](htt
8181
``` js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```

docs/zh-cn/features/css-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CSS Modules 处理是通过 [css-loader](https://github.com/webpack/css-loader)
8181
``` js
8282
{
8383
modules: true,
84-
importLoaders: true,
84+
importLoaders: 1,
8585
localIdentName: '[hash:base64]'
8686
}
8787
```

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ module.exports = function (content) {
513513
}
514514
const OPTIONS = {
515515
localIdentName: '[hash:base64]',
516-
importLoaders: true
516+
importLoaders: 1
517517
}
518518
return loader.replace(/((?:^|!)css(?:-loader)?)(\?[^!]*)?/, (m, $1, $2) => {
519519
// $1: !css-loader

0 commit comments

Comments
 (0)