Skip to content

Commit 4cf2ade

Browse files
authored
Support 'node-webkit' target
This will allow to populate manually predefined global var "__VUE_SSR_CONTEXT__" on server side rendering in php/v8js
1 parent 20f359d commit 4cf2ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (source) {
5353
const incomingQuery = qs.parse(rawQuery)
5454
const options = loaderUtils.getOptions(loaderContext) || {}
5555

56-
const isServer = target === 'node'
56+
const isServer = target === 'node' || target === 'node-webkit'
5757
const isShadow = !!options.shadowMode
5858
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
5959
const filename = path.basename(resourcePath)

0 commit comments

Comments
 (0)