From 3a78b0070ba23ad7c4572a28362bae220f8469e2 Mon Sep 17 00:00:00 2001 From: silverpill Date: Sun, 18 Sep 2022 21:30:48 +0000 Subject: [PATCH] Fix "Allocation failed - JavaScript heap out of memory" build error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a68e96..8a9ef17 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build --no-module", + "build": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service build --no-module", "test:unit": "vue-cli-service test:unit", "test": "npm run test:unit", "lint:js": "vue-cli-service lint --no-fix",