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

Angular very large main.js #9406


User avatar
0
andmattia created

We move our solution to .NET Core and Angular (AbpZero 7.1.0).

When I compile in production the build process create a main.js more the 5 Mb.

Is it possibile to reduce it? How can I check if I've some configuration error?

Regards


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    When I compile in production the build process create a main.js more the 5 Mb.

    Related https://support.aspnetzero.com/QA/Questions/6411

    Can you share the output of the angular compile?

    eg

  • User Avatar
    0
    andmattia created

    Hi this is the output

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia,

    You can use https://www.npmjs.com/package/webpack-bundle-analyzer to check which packages are taking up more space.

    We will also work on this but moment and moment timezone are the ones we can't get rid of.

  • User Avatar
    0
    andmattia created

    Hi @ismcagdas

    I kno very well that momen!

    I check on stats and I see that I've Tlerik, moment and Angular that consume, more or less the 75% of space, so I don't find a specific problem. If I remove Terlik I can reduce the size about 1 Mb. I'm waitng if you find any tricks to reduce it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    I have created an issue to work on this https://github.com/aspnetzero/aspnet-zero-core/issues/3447.