-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.mts
43 lines (42 loc) · 881 Bytes
/
vite.config.mts
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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { createHtmlPlugin } from 'vite-plugin-html'
import Unocss from 'unocss/vite'
import { join } from 'path'
export default defineConfig({
resolve: {
alias: {
'@': `${join(__dirname, 'src')}`
}
},
plugins: [
vue({
isProduction: true
}),
Unocss(),
createHtmlPlugin()
],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
build: {
cssCodeSplit: true,
chunkSizeWarningLimit: 50000,
minify: true,
cssMinify: true,
sourcemap: false,
},
esbuild: {
legalComments: 'none',
minify: true,
minifySyntax: true,
minifyWhitespace: true,
minifyIdentifiers: true,
platform: 'browser',
include: './src/**/*.{js,ts,jsx,tsx,css,json,text,base64,dataurl,file,binary}',
}
})