File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ module.exports.pitch = function (remainingRequest) {
18
18
var addStylesServerPath = loaderUtils . stringifyRequest ( this , '!' + path . join ( __dirname , 'lib/addStylesServer.js' ) )
19
19
20
20
var request = loaderUtils . stringifyRequest ( this , '!!' + remainingRequest )
21
- var id = JSON . stringify ( hash ( request ) )
21
+ var id = JSON . stringify ( hash ( request + this . resourcePath ) )
22
+ var options = loaderUtils . getOptions ( this ) || { }
22
23
23
- // direct css import from js --> direct (how does this work when inside an async chunk? ...just don't do it)
24
+ // direct css import from js --> direct, or manually call `styles.__inject__(ssrContext)` with `manualInject` option
24
25
// css import from vue file --> component lifecycle linked
25
26
// style embedded in vue file --> component lifecycle linked
26
- var isVue = / " v u e " : t r u e / . test ( remainingRequest )
27
+ var isVue = / " v u e " : t r u e / . test ( remainingRequest ) || options . manualInject
27
28
28
29
var shared = [
29
30
'// 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