Skip to content

Commit 9618d86

Browse files
guox191yyx990803
authored andcommitted
fix parse cssModules loader query (#729)
1 parent 48fc85f commit 9618d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = function (content) {
143143
return loader.replace(/((?:^|!)css(?:-loader)?)(\?[^!]*)?/, function (m, $1, $2) {
144144
// $1: !css-loader
145145
// $2: ?a=b
146-
var query = loaderUtils.getOptions($2 || {}) || {}
146+
var query = loaderUtils.parseQuery($2 || '?')
147147
Object.assign(query, OPTIONS, option, DEFAULT_OPTIONS)
148148
if (index !== -1) {
149149
// Note:

0 commit comments

Comments
 (0)