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

why angular production build generate 1000+ js files in dist. #7761


User avatar
0
PMS created

Hi,

why angular production build generate 1000+ js files in dist.

I am using ng build -- prod for the prodution build. Kidly check below image.

Thanks in advance!


8 Answer(s)
  • User Avatar
    0
    PMS created

    any Update ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @PMS

    Each file contains localization values for Angular. Since the application allows creating new languages on runtime, it exports all possible/supported languages when you publish/run the app.

  • User Avatar
    0
    PMS created

    Ok thanks !

  • User Avatar
    0
    PMS created

    one more question

    Should that files need to be in root or some folder in IIS ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @PMS

    Should be in the root directoy next to index.html.

  • User Avatar
    0
    PMS created

    Hay

    can u suggest me If I move all js file to one folder exept index.html and give path of js of that folder should it works ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @PMS

    It might cuase problems. I haven't tried that before. But, it is easy to do. You can test it in your development environment.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.