File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from 'vitepress'
2- import { getSidebar } from 'vitepress-plugin-auto-sidebar'
32
43export default defineConfig ( {
54 /**
Original file line number Diff line number Diff line change 11import DefaultTheme from 'vitepress/theme'
22import './style.postcss'
3- import 'floating-vue/dist/ style.css'
3+ import 'floating-vue/style.css'
44import FloatingVue , { createTooltip } from 'floating-vue'
55
66export default {
Original file line number Diff line number Diff line change 1+ import { resolve } from 'path'
12import { defineConfig } from 'vite'
23import Components from 'unplugin-vue-components/vite'
34import Icons from 'unplugin-icons/vite'
@@ -16,4 +17,13 @@ export default defineConfig({
1617 compiler : 'vue3' ,
1718 } ) ,
1819 ] ,
20+ resolve : {
21+ alias : {
22+ 'floating-vue/style.css' : resolve ( __dirname , '../packages/floating-vue/dist/style.css' ) ,
23+ 'floating-vue' : resolve ( __dirname , '../packages/floating-vue/src/index.ts' ) ,
24+ } ,
25+ } ,
26+ define : {
27+ VERSION : JSON . stringify ( require ( '../package.json' ) . version ) ,
28+ } ,
1929} )
You can’t perform that action at this time.
0 commit comments