File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 66var loaderUtils = require ( 'loader-utils' )
77var path = require ( 'path' )
88var hash = require ( 'hash-sum' )
9+ var qs = require ( 'querystring' )
910
1011module . exports = function ( ) { }
1112
1213module . exports . pitch = function ( remainingRequest ) {
13- if ( this . cacheable ) this . cacheable ( )
14-
1514 var isServer = this . target === 'node'
1615 var isProduction = this . minimize || process . env . NODE_ENV === 'production'
1716 var addStylesClientPath = loaderUtils . stringifyRequest ( this , '!' + path . join ( __dirname , 'lib/addStylesClient.js' ) )
@@ -25,7 +24,11 @@ module.exports.pitch = function (remainingRequest) {
2524 // direct css import from js --> direct, or manually call `styles.__inject__(ssrContext)` with `manualInject` option
2625 // css import from vue file --> component lifecycle linked
2726 // style embedded in vue file --> component lifecycle linked
28- var isVue = / " v u e " : t r u e / . test ( remainingRequest ) || options . manualInject
27+ var isVue = (
28+ / " v u e " : t r u e / . test ( remainingRequest ) ||
29+ options . manualInject ||
30+ qs . parse ( this . resourceQuery . slice ( 1 ) ) . vue != null
31+ )
2932
3033 var shared = [
3134 '// style-loader: Adds some css to the DOM by adding a <style> tag' ,
You can’t perform that action at this time.
0 commit comments