From 1e4415bf95a1038c8294d3bfc093e0088c502e2b Mon Sep 17 00:00:00 2001 From: fatme Date: Thu, 13 Jun 2019 08:56:43 +0300 Subject: [PATCH] fix: increase the max process's size in order to prevent "JavaScript heap out of memory error" --- lib/services/webpack/webpack-compiler-service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 2d40f2ae5d..db776e0fe5 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -107,6 +107,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp const args = [ path.join(projectData.projectDir, "node_modules", "webpack", "bin", "webpack.js"), + "--max_old_space_size=4096", "--preserve-symlinks", `--config=${path.join(projectData.projectDir, "webpack.config.js")}`, ...envParams