Skip to content

Commit 45fd762

Browse files
committed
test: fix broken tests, correct css loader usage
1 parent 72e349a commit 45fd762

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

test/cases/composes-async/webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ module.exports = {
1111
{
1212
loader: 'css-loader',
1313
options: {
14-
modules: true,
15-
localIdentName: '[local]',
14+
modules: {
15+
localIdentName: '[local]',
16+
},
1617
},
1718
},
1819
],

test/cases/css-modules/expected/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
/* 0 */
8989
/***/ (function(module, exports, __webpack_require__) {
9090

91-
// extracted by mini-css-extract-plugin
91+
// extracted by extract-css-chunks-webpack-plugin
9292
module.exports = {"a-module":"index-a-module","b-module":"index-b-module"};
9393

9494
/***/ })

test/cases/css-modules/webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ module.exports = {
1111
{
1212
loader: 'css-loader',
1313
options: {
14-
modules: true,
15-
localIdentName: '[name]-[local]',
14+
modules: {
15+
localIdentName: '[name]-[local]',
16+
},
1617
},
1718
},
1819
],

0 commit comments

Comments
 (0)