Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Publish angular "out of memory" exception #4051


User avatar
0
Ricavir created

Hi,

I have a combined solution with angular and ASP.NET core. I was able to publish my app easily previously. My project is growing and compilation process needs more memory. Therefore, when I publish my app now I have an exception due to lack of memory.

This is a known issue : I'm able to build separatly my angular app with this command : <a class="postlink" href="https://github.com/angular/angular-cli/issues/5618">https://github.com/angular/angular-cli/issues/5618</a> node --max-old-space-size=4096 ./node_modules/@angular/cli/bin/ng build --prod

How can I set this command to be executed in my visual studio solution when publishing my app ?

Right now, the build script is launching command ng build --prod alone and I don't know how to change it...


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Ricavir,

    You can change it in *.Host.csproj file.