Skip to content

Commit

Permalink
vue-router error
Browse files Browse the repository at this point in the history
  • Loading branch information
kings1990 committed Aug 1, 2023
1 parent f875596 commit 45562c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,12 @@ export default defineUserConfig({
"./layouts/Layout.vue",
),
},

configureWebpack: (config, isServer) => {
if (!isServer) {
config.externals = {
'vue-router': 'VueRouter'
}
}
}
});

0 comments on commit 45562c5

Please sign in to comment.