-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
38 lines (37 loc) · 888 Bytes
/
vite.config.js
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
import { defineConfig } from 'vite';
import { createHtmlPlugin } from 'vite-plugin-html';
import { terser } from 'rollup-plugin-terser';
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
base: 'https://glad432.github.io/',
plugins: [
tailwindcss(),
createHtmlPlugin({
minify: {
collapseWhitespace: true,
removeComments: true,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleTypeAttributes: true,
minifyCSS: true,
minifyJS: true,
},
}),
],
build: {
chunkSizeWarningLimit: 1000,
rollupOptions: {
plugins: [
terser({
compress: {},
mangle: {},
format: {
comments: false,
}
})
]
}
}
});