Skip to content

Alias to the angular cli that changes node's max_old_space_used property

Notifications You must be signed in to change notification settings

isaacplmann/angular-cli-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Angular CLI Alias

A little helper utility to allow setting max_old_space_size on the node process that runs the angular cli.

Usage

  1. Add a config option to your project's package.json:
{
    "config": {
        "max_old_space_size": 3072
    }
}
  1. Change all references in your npm scripts from ng to ng-alias
  2. Ensure that setup-ng-alias runs before you try to run ng-alias. i.e. with a prebuild script:
{
    "scripts": {
        "prebuild": "setup-ng-alias",
        "build": "ng-alias build --prod"
    }
}

Cross platform

This script has been tested on Windows and Unix environments.

About

Alias to the angular cli that changes node's max_old_space_used property

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published