Skip to content

Commit

Permalink
feat: avoid adding index to css modules in first <style> tag
Browse files Browse the repository at this point in the history
ref #1104, close #703, close #818
  • Loading branch information
yyx990803 committed Mar 6, 2018
1 parent 96635ea commit 2c8d1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ module.exports = function createHelpers (
// $2: ?a=b
const query = loaderUtils.parseQuery($2 || '?')
Object.assign(query, OPTIONS, option, DEFAULT_OPTIONS)
if (index !== -1) {
if (index > 0) {
// Note:
// Class name is generated according to its filename.
// Different <style> tags in the same .vue file may generate same names.
Expand Down

0 comments on commit 2c8d1fb

Please sign in to comment.