Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 7d14a7c

Browse files
author
Matt Levy
authored
Merge pull request #22 from davidmeirlevy/html5-history-support
HTML5 history support
2 parents 15ffe44 + 81759cf commit 7d14a7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

template/config/webpack.config.base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ let config = {
77
},
88
output: {
99
path: helpers.root('/dist'),
10-
filename: 'js/[name].[hash].js'
10+
filename: 'js/[name].[hash].js',
11+
publicPath: '/'
1112
},
1213
devtool: 'source-map',
1314
resolve: {

template/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { NavbarComponent } from './components/navbar';
1212
Vue.use(VueRouter);
1313

1414
let router = new VueRouter({
15+
mode: 'history',
1516
routes: [
1617
{ path: '/', component: HomeComponent },
1718
{ path: '/about', component: AboutComponent },

0 commit comments

Comments
 (0)