ANSWERED how can I add …

less than 1 minute read

ANSWERED: how can I add this option --maxWorkers to the build part of the process when running nx server ? if I run nx build myapp --maxWorkers=1 it does what i need it to do; it limits the num of workers that node creates. –maxWorkers is not recognized when running nx serve myapp --maxWorkers=1 . I would like to be able to build and serve the app from a single command.

Responses:

I found the answer. Leaving just for documentation. I modified my angular.json -> projects -> app -> artchitect -> build -> options -> added maxWorkers=1 under assests

Glad it is working! So weird you have to do that, i have it set under build but not under serve.

Updated: