feat: add archive plug-in to output dist.zip after build (#4272)

* feat: add the archiver plug-in to output dist.zip after build

* chore: update env
This commit is contained in:
Vben
2024-08-29 21:47:00 +08:00
committed by GitHub
parent be3bcc1122
commit 98da0672e7
21 changed files with 200 additions and 44 deletions

View File

@@ -74,6 +74,7 @@ async function loadAndConvertEnv(
const {
VITE_APP_TITLE,
VITE_ARCHIVER,
VITE_BASE,
VITE_COMPRESS,
VITE_DEVTOOLS,
@@ -90,6 +91,7 @@ async function loadAndConvertEnv(
return {
appTitle: getString(VITE_APP_TITLE, 'Vben Admin'),
archiver: getBoolean(VITE_ARCHIVER),
base: getString(VITE_BASE, '/'),
compress: compressTypes.length > 0,
compressTypes,