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
Add the below line to Package.json
"aot": "node --max-old-space-size=8192 ./node_modules/@angular/cli/bin/ng build --prod --aot"
and try running with "npm run aot".
It worked for me.