feat: vite压缩不删除原有文件

This commit is contained in:
lbw 2023-04-10 08:24:52 +08:00
parent fc39d84942
commit 07e88911c9

View File

@ -37,7 +37,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
promiseImportName: (i) => `__tla_${i}`, // TLA Promise 导入名 promiseImportName: (i) => `__tla_${i}`, // TLA Promise 导入名
}), }),
viteCompression({ viteCompression({
deleteOriginFile: true, // 压缩后删除原来的文件 deleteOriginFile: false, // 压缩后删除原来的文件
}), }),
], ],
root: process.cwd(), // 项目根目录 root: process.cwd(), // 项目根目录