-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 936 Bytes
/
Copy pathvite.config.ts
File metadata and controls
31 lines (30 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { fileURLToPath, URL } from 'node:url'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
import UnoCSS from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
vueDevTools(),
UnoCSS(),
Components({
resolvers: [NaiveUiResolver()],
dts: true,
}),
],
root: './playground',
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@zeng-alt/vue-spel-query-builder$': resolve(__dirname, 'dist/index.mjs'),
'@zeng-alt/vue-spel-query-builder/style.css': resolve(__dirname, 'dist/assets/vue-spel-query-builder.css'),
},
},
})