Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isaacplmann/angular-cli-alias
Alias to the angular cli that changes node's max_old_space_used property
https://github.com/isaacplmann/angular-cli-alias
allocation angular angular-cli cli max-old-space-size memory node unix windows
Last synced: about 1 month ago
JSON representation
Alias to the angular cli that changes node's max_old_space_used property
- Host: GitHub
- URL: https://github.com/isaacplmann/angular-cli-alias
- Owner: isaacplmann
- Created: 2017-02-15T21:27:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T13:35:24.000Z (over 5 years ago)
- Last Synced: 2024-09-29T22:43:51.366Z (about 1 month ago)
- Topics: allocation, angular, angular-cli, cli, max-old-space-size, memory, node, unix, windows
- Language: JavaScript
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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:
```json
{
"config": {
"max_old_space_size": 3072
}
}
```2. Change all references in your npm scripts from `ng` to `ng-alias`
3. Ensure that `setup-ng-alias` runs before you try to run `ng-alias`. i.e. with a `prebuild` script:```json
{
"scripts": {
"prebuild": "setup-ng-alias",
"build": "ng-alias build --prod"
}
}
```## Cross platform
This script has been tested on Windows and Unix environments.