Huge number of files generated for every Angular project

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

    There is nothing wrong with your configuration.

    Angular (since version 2.0) uses npm modules and dependencies for development. That's the sole reason you are seeing such a huge number of files.

    A basic setup of Angular contains transpiler, typings dependencies which are essential for development purposes only.

    Once you are done with development, all you will need to do is to bundle this application.

    After bundling your application, there will be only one bundle.js file which you can then deploy on your server.

    'transpiler' is just a compiler, thanks @omninonsense for adding that.

提交回复
热议问题