Enable history mode

This commit is contained in:
Roman Cervantes 2019-02-05 23:55:15 -07:00
parent 4c576879e2
commit 5f5425e978
3 changed files with 3 additions and 10 deletions

View file

@ -24,11 +24,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
historyApiFallback: true,
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,

View file

@ -24,11 +24,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
historyApiFallback: true,
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,

View file

@ -9,6 +9,7 @@ import Platforms from '@/pages/Platforms/Platforms';
Vue.use(Router);
export default new Router({
mode: 'history',
routes: [
{
path: '/s/:userId/:listName',