Skip to content

Commit

Permalink
build(projects): 配置更改
Browse files Browse the repository at this point in the history
  • Loading branch information
Soybean committed Jun 6, 2022
1 parent e9656c6 commit c8717c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c8717c2

Please sign in to comment.