From 9563e43631ff3e5aa2009b426f61ef9853d57cae Mon Sep 17 00:00:00 2001 From: alfredriesen Date: Thu, 6 Sep 2018 14:16:36 +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 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4adcd219..a424cf37 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ var qs = require('querystring') module.exports = function () {} module.exports.pitch = function (remainingRequest) { - var isServer = this.target === 'node' + var isServer = this.target === 'node' || this.target === 'node-webkit' var isProduction = this.minimize || process.env.NODE_ENV === 'production' var addStylesClientPath = loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'lib/addStylesClient.js')) var addStylesServerPath = loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'lib/addStylesServer.js'))