feat: 使用terser来控制清除

This commit is contained in:
Burt
2023-12-23 12:04:31 +08:00
parent 9390af654b
commit 16fcb3f4eb
4 changed files with 30 additions and 4 deletions

11
src/env.d.ts vendored
View File

@@ -1,4 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="vite-svg-loader" />
declare module '*.vue' {
import { DefineComponent } from 'vue'
@@ -6,3 +7,13 @@ declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string
readonly VITE_SERVER_PORT: string
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}