update env support

This commit is contained in:
AceDataCloud committed 2022-10-07 14:39:30 +08:00
1 parent 19facac317
commit 67f8e78bad
3 files changed
+51 -12

No files matched your search

+9 -2
View File
@@ -2,8 +2,14 @@
"name": "zhishuyun-academy",
"version": "0.1.0",
"scripts": {
"start": "vite",
"build": "vue-tsc --noEmit --skipLibCheck && vite build",
"start": "cross-env NODE_ENV=$npm_config_env vite --host",
"start:local": "npm run start --env=local",
"start:test": "npm run start --env=test",
"start:production": "npm run start --env=production",
"build": "cross-env NODE_ENV=$npm_config_env vue-tsc --noEmit --skipLibCheck && vite build",
"build:local": "npm run build --env=local",
"build:test": "npm run build --env=test",
"build:production": "npm run build --env=production",
"serve": "vite preview",
"lint": "npx eslint src --fix --ext .ts,.tsx,.vue,.js,.jsx",
"prettier": "npx prettier --write ."
@@ -36,6 +42,7 @@
"@vitejs/plugin-vue": "^2.3.0",
"@vue/compiler-sfc": "^3.0.5",
"autoprefixer": "^10.3.3",
"cross-env": "^7.0.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^16.0.3",