Huge number of files generated for every Angular project

后端 未结 14 1083
旧时难觅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:33

    There is nothing wrong with your development configuration.

    Something wrong with your production configuration.

    When you develop a "Angular 2 Project" or "Any Project Which is based on JS" you can use all files, you can try all files, you can import all files. But if you want to serve this project you need to COMBINE all structured files and get rid of useless files.

    There are a lot of options for combine these files together:

    • YUI Compressor
    • Google Closure Compiler
    • For server side (I think it is best) GULP

提交回复
热议问题