build(projects): 配置更改
This commit is contained in:
parent
e9656c6e76
commit
c8717c25b8
@ -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",
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user