diff --git a/services/rebuild-app.js b/services/rebuild-app.js index b3ce046c..2b748c2d 100644 --- a/services/rebuild-app.js +++ b/services/rebuild-app.js @@ -5,7 +5,7 @@ const { exec } = require('child_process'); module.exports = () => new Promise((resolve, reject) => { - const buildProcess = exec('npm run build'); // Trigger the build command + const buildProcess = exec('NODE_OPTIONS="--max-old-space-size=512" npm run build'); // Trigger the build command let output = ''; // Will store console output diff --git a/tsconfig.json b/tsconfig.json index fa2a5b19..f5bf64d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,7 @@ { "compilerOptions": { + "incremental": true, + "tsBuildInfoFile": "/app/.tsbuildinfo", "target": "esnext", "module": "esnext", "strict": false, diff --git a/vue.config.js b/vue.config.js index 0e4df226..3178e9dd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -96,5 +96,8 @@ module.exports = { devServer, chainWebpack: config => { config.module.rules.delete('svg'); + config.cache({ + type: 'filesystem', + }); }, };