Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d04629a

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

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎lib/loader.js

Copy file name to clipboardExpand all lines: lib/loader.js
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.