fixed history path bug in dev server

using historyApiFallback
based on https://github.com/vuejs-templates/webpack/blob/develop/template/config/index.js
This commit is contained in:
2019-08-21 18:47:57 +02:00
parent 157f964783
commit 07f35b0e89
+6
View File
@@ -2,6 +2,7 @@
const webpack = require('webpack')
const merge = require('webpack-merge')
const baseConfig = require('./webpack.config.base')
const PORT = 8988
@@ -11,6 +12,11 @@ module.exports = merge(baseConfig, {
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: '/index.html' },
],
},
hot: true,
contentBase: 'dist',
compress: true,