Skip to content

Commit 2c8d1fb

Browse files
committed
feat: avoid adding index to css modules in first <style> tag
ref #1104, close #703, close #818
1 parent 96635ea commit 2c8d1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ module.exports = function createHelpers (
242242
// $2: ?a=b
243243
const query = loaderUtils.parseQuery($2 || '?')
244244
Object.assign(query, OPTIONS, option, DEFAULT_OPTIONS)
245-
if (index !== -1) {
245+
if (index > 0) {
246246
// Note:
247247
// Class name is generated according to its filename.
248248
// Different <style> tags in the same .vue file may generate same names.

0 commit comments

Comments
 (0)