File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
var loaderUtils = require ( 'loader-utils' )
7
7
var path = require ( 'path' )
8
8
var hash = require ( 'hash-sum' )
9
+ var qs = require ( 'querystring' )
9
10
10
11
module . exports = function ( ) { }
11
12
12
13
module . exports . pitch = function ( remainingRequest ) {
13
- if ( this . cacheable ) this . cacheable ( )
14
-
15
14
var isServer = this . target === 'node'
16
15
var isProduction = this . minimize || process . env . NODE_ENV === 'production'
17
16
var addStylesClientPath = loaderUtils . stringifyRequest ( this , '!' + path . join ( __dirname , 'lib/addStylesClient.js' ) )
@@ -25,7 +24,11 @@ module.exports.pitch = function (remainingRequest) {
25
24
// direct css import from js --> direct, or manually call `styles.__inject__(ssrContext)` with `manualInject` option
26
25
// css import from vue file --> component lifecycle linked
27
26
// 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
+ )
29
32
30
33
var shared = [
31
34
'// 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