-
Notifications
You must be signed in to change notification settings - Fork 26
/
vite-example.config.ts
42 lines (39 loc) · 974 Bytes
/
vite-example.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
37
38
39
40
41
42
/*
* @Date: 2023-06-15 20:52:07
* @LastEditors: yikoyu [email protected]
* @LastEditTime: 2023-06-15 22:46:19
* @FilePath: \vuetify-pro-tiptap\vite-example.config.ts
*/
import { resolve } from 'path'
import { defineConfig } from 'vite'
import { checker } from 'vite-plugin-checker'
import vue from '@vitejs/plugin-vue'
import { Vuetify3Resolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import { scripts } from './package.json'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [
vue(),
Components({
dirs: undefined,
dts: false,
resolvers: [Vuetify3Resolver()]
})
// checker({
// vueTsc: true,
// eslint: {
// lintCommand: scripts['lint:js']
// },
// stylelint: {
// lintCommand: scripts['lint:css']
// }
// })
],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
}
})