windows SPA problem

This commit is contained in:
Pooya Parsa 2018-03-17 13:36:33 +03:30
parent 986c545627
commit 2692307988

View File

@ -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: {