Skip to content

Commit d04629a

Browse files
committed
add marker for vue-style-loader to detect whether a request is made by a vue file
1 parent eb933bf commit d04629a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ module.exports = function (content) {
199199
var styleCompiler = ''
200200
if (type === 'styles') {
201201
styleCompiler = styleCompilerPath + '?' + JSON.stringify({
202+
// a marker for vue-style-loader to know that this is an import from a vue file
203+
vue: true,
202204
id: moduleId,
203205
scoped: !!scoped,
204206
hasInlineConfig: !!query.postcss

0 commit comments

Comments
 (0)