title: How do I allocate more memory to node.js when running ng build? (Mac)
body: <p>I have started to experience node crashes during <code>ng build --prod</code>, due to increasing memory requirements of my angular-cli app. I have seen solutions like this:</p>
  
  <pre><code>node --max_old_space_size=4096 myAwesomeServer.js
  </code></pre>
  
  <p>but how could that be applied to <code>ng</code> commands (esp. <code>ng bundle</code>)?</p>