diff --git a/lib/helpers.js b/lib/helpers.js index bcc9a4f5f..2c97ebc9c 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -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