Skip to content

Commit

Permalink
feat($core): allow dynamic routeBase at runtime
Browse files Browse the repository at this point in the history
Setting it via window.__VUEPRESS_ROUTE_BASE__ at enhance app file.
  • Loading branch information
ulivz committed Mar 31, 2019
1 parent 699492a commit fc99d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Vue.prototype.$withBase = function (path) {

export function createApp (isServer) {
const router = new Router({
base: siteData.base,
base: window.__VUEPRESS_ROUTE_BASE__ || siteData.base,
mode: 'history',
fallback: false,
routes,
Expand Down

0 comments on commit fc99d59

Please sign in to comment.