Merge branch 'master' into 0.9.10

This commit is contained in:
Sébastien Chopin 2017-02-18 10:55:36 +01:00
commit 5b22564b10
3 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const scrollBehavior = (to, from, savedPosition) => {
<% } %>
export default new Router({
mode: 'history',
mode: '<%= router.mode %>',
base: '<%= router.base %>',
linkActiveClass: '<%= router.linkActiveClass %>',
scrollBehavior,

View File

@ -181,6 +181,7 @@ function * generateRoutesAndFiles () {
uniqBy: _.uniqBy,
isDev: this.dev,
router: {
mode: this.options.router.mode,
base: this.options.router.base,
middleware: this.options.router.middleware,
linkActiveClass: this.options.router.linkActiveClass,

View File

@ -36,6 +36,7 @@ class Nuxt {
mode: 'out-in'
},
router: {
mode: 'history',
base: '/',
middleware: [],
linkActiveClass: 'nuxt-link-active',