We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a1eca commit 9799418Copy full SHA for 9799418
index.js
@@ -58,7 +58,10 @@ module.exports.pitch = function (remainingRequest) {
58
// on the server: attach to Vue SSR context
59
return shared.concat([
60
'// add CSS to SSR context',
61
- 'require(' + addStylesServerPath + ')(' + id + ', content, ' + isProduction + ');'
+ 'var add = require(' + addStylesServerPath + ')',
62
+ 'module.exports.__inject__ = function () {',
63
+ ' add(' + id + ', content, ' + isProduction + ')',
64
+ '};'
65
]).join('\n')
66
}
67
0 commit comments