From 4cf2aded9aff5a60af8c449f42fdfe496d1abc48 Mon Sep 17 00:00:00 2001 From: alfredriesen Date: Thu, 6 Sep 2018 13:27:40 +0200 Subject: [PATCH] Support 'node-webkit' target This will allow to populate manually predefined global var "__VUE_SSR_CONTEXT__" on server side rendering in php/v8js --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 752f9854e..30b389c96 100644 --- a/lib/index.js +++ b/lib/index.js @@ -53,7 +53,7 @@ module.exports = function (source) { const incomingQuery = qs.parse(rawQuery) const options = loaderUtils.getOptions(loaderContext) || {} - const isServer = target === 'node' + const isServer = target === 'node' || target === 'node-webkit' const isShadow = !!options.shadowMode const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production' const filename = path.basename(resourcePath)