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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user