title: Webpack out of memory
body: <p>When I'm working with a webpack-dev server, the problem sometimes occurs</p>
  
  <pre><code>FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
  </code></pre>
  
  <p>more <a href="https://pastebin.com/Rq4w3YXJ" rel="noreferrer">here</a></p>
  
  <p>Config <a href="https://pastebin.com/1VrJpfaY" rel="noreferrer">webpack.config.js</a></p>
  
  <pre><code>"webpack": "^4.5.0",
  "webpack-cli": "^2.0.14",
  "webpack-dev-server": "^3.1.3",
  </code></pre>
  
  <p>NodeJS version:</p>
  
  <pre><code>node -v
  v9.3.0
  </code></pre>
  
  <p>OS version: </p>
  
  <pre><code>macOS High Sierra 10.13.6
  </code></pre>
  
  <p>Has anyone encountered a similar problem?</p>