revert spa fix

This commit is contained in:
Pooya Parsa 2018-03-18 11:21:17 +03:30
parent 1dce37fde9
commit f537b0fdcb

View File

@ -14,8 +14,6 @@ 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
@ -91,7 +89,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' && isWindows),
name: this.options.dev || this.options.mode === 'spa',
// Explicit cache groups
cacheGroups: {