build(projects): 配置更改

This commit is contained in:
Soybean 2022-06-06 12:09:15 +08:00
parent e9656c6e76
commit c8717c25b8
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@
"build:dev": "npm run typecheck && cross-env VITE_ENV_TYPE=dev vite build",
"build:test": "npm run typecheck && cross-env VITE_ENV_TYPE=test vite build",
"build:vercel": "cross-env VITE_HASH_ROUTE=true vite build",
"preview": "vite preview --port 5050",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"prepare": "husky install",

View File

@ -35,9 +35,12 @@ export default defineConfig(configEnv => {
open: true,
proxy: createViteProxy(isOpenProxy, envConfig)
},
preview: {
port: 5050
},
build: {
brotliSize: false,
sourcemap: true,
sourcemap: false,
commonjsOptions: {
ignoreTryCatch: false
}