mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
windows SPA problem
This commit is contained in:
parent
986c545627
commit
2692307988
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user