From f067c95d93ec30f7100a946f77bc96c47dbed1de Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Sat, 24 Oct 2026 13:10:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20web=20=E6=9E=84=E5=BB=BA=E6=94=B9?= =?UTF-8?q?=E7=94=A8=202G=20=E5=A0=86=E5=86=85=E5=AD=98=EF=BC=8C=E9=80=82?= =?UTF-8?q?=E9=85=8D=E6=B5=8B=E8=AF=95=E6=9C=BA=E5=B0=8F=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6158a964..cd6ebc8a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,7 +46,8 @@ steps: - mkdir -p "/hzdyjs-releases/${DRONE_TAG}" - cd web - npm install --legacy-peer-deps --no-audit --no-fund - - npm run build:prod + # 测试机约 3.6G 内存,勿用 package.json 里 6~8G 的 max-old-space-size + - node --max-old-space-size=2048 node_modules/vite/bin/vite.js build --mode production - test -f dist/index.html - tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" . - ls -lh "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz"