-
Notifications
You must be signed in to change notification settings - Fork 230
/
Copy pathvite.config.ts
48 lines (47 loc) · 1.06 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
37
38
39
40
41
42
43
44
45
46
47
48
import { fileURLToPath, URL } from 'url';
import { defineConfig,normalizePath } from 'vite';
import vue from '@vitejs/plugin-vue';
import vuetify from 'vite-plugin-vuetify';
import { viteStaticCopy } from 'vite-plugin-static-copy'
import path from 'node:path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
viteStaticCopy({
targets: [
{
src: [ normalizePath(path.resolve(__dirname, './src/assets/images'))+ '/[!.]*', ],
dest: './assets/images'
}
]
}),
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => ['v-list-recognize-title'].includes(tag)
}
}
}),
vuetify({
autoImport: true
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
css: {
preprocessorOptions: {
scss: {}
}
},
assetsInclude:[''],
build: {
chunkSizeWarningLimit: 1024 * 1024 // Set the limit to 1 MB
},
optimizeDeps: {
exclude: ['vuetify'],
entries: ['./src/**/*.vue']
}
});