generated from unplugin/unplugin-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
vite.config.ts
36 lines (34 loc) · 1.02 KB
/
vite.config.ts
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
32
33
34
35
36
import { createResolver } from '@nuxt/kit'
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Inspect from 'vite-plugin-inspect'
import Pinceau from '@pinceau/vue/plugin'
const resolve = (p: string) => createResolver(import.meta.url).resolve(p)
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@pinceau/stringify': resolve('../../packages/stringify/src/index.ts'),
'@pinceau/runtime': resolve('../../packages/runtime/src/index.ts'),
'@pinceau/core/runtime': resolve('../../packages/core/src/runtime.ts'),
'@pinceau/theme/runtime': resolve('../../packages/theme/src/runtime.ts'),
'@pinceau/vue/runtime': resolve('../../integrations/vue/src/runtime.ts'),
},
},
plugins: [
Vue(),
Pinceau({
style: {
excludes: [
resolve('../../packages'),
],
}
}),
!process.env.VITEST_WORKER_ID
? Inspect({
build: true,
outputDir: '.vite-inspect',
})
: undefined,
],
})