Angular-cli 'JavaScript heap out of memory' on asset optimization

后端 未结 5 1383
既然无缘
既然无缘 2021-01-17 22:43

I\'m creating a leaflet map inside an Angular-cli project. Map tiles are stored locally in the \'assets\' folder because it\'s a raster map. The problem is when I\'ve many z

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 22:54

    You can add NODE_OPTIONS as a system variable. To set memory to 4 gigs,

    --max-old-space-size=4096

    Lots more info on this thread, they deserve the votes

提交回复
热议问题