Add warning for yarn run build memory consumption

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-07-05 08:32:11 +02:00
parent 783c1afe72
commit 002f159430
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,13 @@ and install the Javascript dependencies
yarn install
```
Finally, we can build the front-end (this can take a few seconds)
Finally, we can build the front-end (this can take a few seconds).
!!! warning
Building front-end can consume up to 512MB of RAM by default. If it's too much or not sufficient for your setup, you can adjust the maximum memory used by prefixing the command with the following option:
```
NODE_OPTIONS=--max_old_space_size=4096
```
```bash
yarn run build
```