We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2712a3a commit d542d84Copy full SHA for d542d84
lib/loader.js
@@ -427,16 +427,18 @@ module.exports = function (content) {
427
function addCssModulesToLoader (loader, part, index) {
428
if (!part.module) return loader
429
var option = options.cssModules || {}
430
+ var DEFAULT_OPTIONS = {
431
+ modules: true
432
+ }
433
var OPTIONS = {
434
localIdentName: '[hash:base64]',
- modules: true,
435
importLoaders: true
436
}
437
return loader.replace(/((?:^|!)css(?:-loader)?)(\?[^!]*)?/, function (m, $1, $2) {
438
// $1: !css-loader
439
// $2: ?a=b
440
var query = loaderUtils.parseQuery($2 || '?')
- Object.assign(query, OPTIONS, option)
441
+ Object.assign(query, OPTIONS, option, DEFAULT_OPTIONS)
442
if (index !== -1) {
443
// Note:
444
// Class name is generated according to its filename.
0 commit comments