mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-04 23:17:39 +08:00
add terser
This commit is contained in:
@@ -12,7 +12,8 @@ export default defineConfig({
|
||||
build: {
|
||||
rollupOptions: {
|
||||
external: []
|
||||
}
|
||||
},
|
||||
minify: 'terser'
|
||||
},
|
||||
plugins: [
|
||||
externalizeDepsPlugin({
|
||||
@@ -36,7 +37,10 @@ export default defineConfig({
|
||||
]
|
||||
},
|
||||
preload: {
|
||||
plugins: [externalizeDepsPlugin()]
|
||||
plugins: [externalizeDepsPlugin()],
|
||||
build: {
|
||||
minify: 'terser'
|
||||
}
|
||||
},
|
||||
renderer: {
|
||||
resolve: {
|
||||
@@ -51,5 +55,8 @@ export default defineConfig({
|
||||
transformers: [transformerDirective()],
|
||||
})
|
||||
],
|
||||
build: {
|
||||
minify: 'terser'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
"normalize.css": "^8.0.1",
|
||||
"prettier": "^3.2.4",
|
||||
"sass": "^1.70.0",
|
||||
"terser": "^5.37.0",
|
||||
"typescript": "^5.3.3",
|
||||
"unocss": "^0.58.5",
|
||||
"unplugin-auto-import": "^0.17.5",
|
||||
|
||||
Reference in New Issue
Block a user