vite可能不能使用test mode。暂时先去掉 https://github.com/jeecgboot/jeecgboot-vue3/issues/149
parent
bcfb19b8bb
commit
64679f7193
34
.env.test
34
.env.test
|
@ -1,34 +0,0 @@
|
||||||
# 是否启用mock
|
|
||||||
VITE_USE_MOCK = true
|
|
||||||
|
|
||||||
# 发布路径
|
|
||||||
VITE_PUBLIC_PATH = /
|
|
||||||
|
|
||||||
# 控制台不输出
|
|
||||||
VITE_DROP_CONSOLE = true
|
|
||||||
|
|
||||||
# 是否启用gzip或brotli压缩
|
|
||||||
# 选项值: gzip | brotli | none
|
|
||||||
# 如果需要多个可以使用“,”分隔
|
|
||||||
VITE_BUILD_COMPRESS = 'gzip'
|
|
||||||
|
|
||||||
# 使用压缩时是否删除原始文件,默认为false
|
|
||||||
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|
||||||
|
|
||||||
#后台接口父地址(必填)
|
|
||||||
VITE_GLOB_API_URL=/jeecgboot
|
|
||||||
|
|
||||||
#后台接口全路径地址(必填)
|
|
||||||
VITE_GLOB_DOMAIN_URL=http://localhost:8080/jeecg-boot
|
|
||||||
|
|
||||||
# 接口父路径前缀
|
|
||||||
VITE_GLOB_API_URL_PREFIX=
|
|
||||||
|
|
||||||
# 是否启用图像压缩
|
|
||||||
VITE_USE_IMAGEMIN= true
|
|
||||||
|
|
||||||
# 使用pwa
|
|
||||||
VITE_USE_PWA = false
|
|
||||||
|
|
||||||
# 是否兼容旧浏览器
|
|
||||||
VITE_LEGACY = false
|
|
|
@ -13,7 +13,6 @@
|
||||||
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
|
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
|
||||||
"clean:lib": "rimraf node_modules",
|
"clean:lib": "rimraf node_modules",
|
||||||
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts",
|
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && esno ./build/script/postBuild.ts",
|
||||||
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode test && esno ./build/script/postBuild.ts",
|
|
||||||
"build:no-cache": "pnpm clean:cache && npm run build",
|
"build:no-cache": "pnpm clean:cache && npm run build",
|
||||||
"report": "cross-env REPORT=true npm run build",
|
"report": "cross-env REPORT=true npm run build",
|
||||||
"type:check": "vue-tsc --noEmit --skipLibCheck",
|
"type:check": "vue-tsc --noEmit --skipLibCheck",
|
||||||
|
|
Loading…
Reference in New Issue