From 26923079884d0714daa291349110d59d5f037d0b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 17 Mar 2018 13:36:33 +0330 Subject: [PATCH] windows SPA problem --- lib/builder/webpack/client.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 10202807d..1f9ffb243 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -14,6 +14,8 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin') const debug = Debug('nuxt:build') debug.color = 2 // Force green color +const isWindows = /^win/.test(process.platform) + /* |-------------------------------------------------------------------------- | Webpack Client Config @@ -89,7 +91,7 @@ module.exports = function webpackClientConfig() { config.optimization.splitChunks = { chunks: 'all', // TODO: remove spa after https://github.com/jantimon/html-webpack-plugin/issues/878 solved - name: this.options.dev, // || this.options.mode === 'spa', + name: this.options.dev || (this.options.mode === 'spa' && isWindows), // Explicit cache groups cacheGroups: {