Huge number of files generated for every Angular project

后端 未结 14 1071
旧时难觅i
旧时难觅i 2020-11-28 00:37

I wanted to start a simple hello world app for Angular.

When I followed the instructions in the official quickstart the installation created 32,000 files in my proje

14条回答
  •  清歌不尽
    2020-11-28 01:20

    if you use Angular CLI you can always use --minimal flag when you create a project

    ng new name --minimal
    

    I've just run it with the flag and it creates 24 600 files and ng build --prod produces 212 KB dist folder

    So if you don't need water fountains in your project or just want to quickly test something out this I think is pretty useful

提交回复
热议问题