mirror of
https://github.com/romancm/gamebrary
synced 2024-11-10 13:44:16 +00:00
Enable history mode
This commit is contained in:
parent
4c576879e2
commit
5f5425e978
3 changed files with 3 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -9,6 +9,7 @@ import Platforms from '@/pages/Platforms/Platforms';
|
|||
Vue.use(Router);
|
||||
|
||||
export default new Router({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
{
|
||||
path: '/s/:userId/:listName',
|
||||
|
|
Loading…
Reference in a new issue