File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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) {
1818 var addStylesServerPath = loaderUtils . stringifyRequest ( this , '!' + path . join ( __dirname , 'lib/addStylesServer.js' ) )
1919
2020 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 ) || { }
2223
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
2425 // css import from vue file --> component lifecycle linked
2526 // 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
2728
2829 var shared = [
2930 '// 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