FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory - webpack sample Angular 2
问题 I am facing an issue in webpack sample while getting webpack build: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory package.json "build": "rimraf dist && node_modules\\.bin\\webpack --config config/webpack.prod.js --progress --profile --bail", 回答1: Every single time when i got the same error i managed to solve the issue using the --max_old_space_size option. My guess would be that either --max_old_space_size=4096 is not enough (just use a higher value) or