title: `react-scripts build' is using 1+ GB of RAM
body: <p>I have a relatively simple React 15 website. It only has a few distinct pages, and it's mainly just text and some pictures. However, when I use <code>react-scripts build</code> to build the project for production deployment, I'm finding that the node process tops out at around <strong>1.25 GB</strong> of RAM used. This hasn't been an issue when building on my workstation, but it's a problem on my production server, where I currently only have <strong>1 GB</strong> of RAM available. Most of the time, the server kills my build due to running out of memory.</p>
  
  <p>So it seems my options are to spend more money to upgrade to <strong>2GB</strong> of RAM on the server, or find some way to reduce the memory usage. I'd like to avoid paying more, because normally I don't use more than <strong>200 MB</strong> of RAM to run my application, and it's just building it that uses a lot of RAM.</p>
  
  <p>I've seems some people recommend adding a <code>--max-old-space-size=</code> flag to the build, but that doesn't seem to do anything. That is, I've tried this in my package.json:</p>
  
  <pre><code>"build": "react-scripts --max-old-space-size=512 build"
  </code></pre>
  
  <p>But it still uses up <strong>1+ GB</strong> of RAM. I kick off the build via <code>npm run build</code>, and adding the <code>--max-old-space-size</code> flag to that <code>npm</code> command doesn't seem to do anything.</p>
  
  <p>Is there anything I can do to prevent the <code>react-scripts</code> build process from using so much memory?</p>