Skip to content

Commit

Permalink
Merge pull request #148 from akhuoa/bugfix/docs-build-alias
Browse files Browse the repository at this point in the history
Update vitepress config with alias to resolve dir
  • Loading branch information
Tehsurfer authored Apr 11, 2024
2 parents 7250995 + c93fe22 commit 3ea6638
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path'
import { defineConfig } from 'vitepress'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
Expand Down Expand Up @@ -68,6 +69,11 @@ export default defineConfig({
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, '../../src'),
}
},
plugins: [
Components({
// allow auto load markdown components under `./src/components/`
Expand Down

0 comments on commit 3ea6638

Please sign in to comment.