Skip to content

Commit

Permalink
fix: public path when using globally (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Nov 13, 2021
1 parent ddb6036 commit 073c8b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/slidev/node/plugins/extendConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function createConfigPlugin(options: ResolvedSlidevOptions): Plugin {

if (isInstalledGlobally) {
injection.cacheDir = join(options.cliRoot, 'node_modules/.vite')
injection.publicDir = join(options.userRoot, 'public')
injection.root = options.cliRoot
// @ts-expect-error
injection.resolve.alias.vue = `${resolveImportPath('vue/dist/vue.esm-browser.js', true)}`
Expand Down

0 comments on commit 073c8b4

Please sign in to comment.