From 31346228718cb8a9c8b6bff7a21c57fb176da472 Mon Sep 17 00:00:00 2001 From: Tester_Z <54057702+EasilyTest@users.noreply.github.com> Date: Wed, 17 Mar 2021 10:43:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwindows=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=86=85=E5=AD=98=E6=BA=A2=E5=87=BA=E6=89=A9=E5=A4=A7?= =?UTF-8?q?=E8=87=B34G?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows执行 npm run build-win --- frontend/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index d67ac0605e..0554fd3bdf 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", + "build": "export NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build", + "build-win": "SET NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": {