I am trying to increase Angular Build production speed with command below, Ran the following command, however no improvement in build time, still at 14 min. Is the --prod command making it ignore the max old size space? is the script correct? We are running this in Azure Devops Agents, this how it appears in log
node --max-old-space-size=12288 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none
Should command for max-old-space-size be relocated in angular.json configurations production section?
Improving production build time for Angular 7 application
This is package.json file:
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "node --max-old-space-size=12288 ./node_modules/@angular/cli/bin/ng build --prod",
"prod": "node --max-old-space-size=12288 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},