angular 2 - ng build vs webpack build

前端 未结 2 1462
孤街浪徒
孤街浪徒 2021-02-08 23:32

I am looking to see what is the best approach to buid and deploy my angular 2 web application?

I finally need to serve it as a web bundle resource to my dropwizard appl

2条回答
  •  孤街浪徒
    2021-02-09 00:28

    Webpack and ng-build do pretty much the same job, which is bundling your modules to be used in a browser environment For example, the Angular module is a feature, which doesn't support in the browser, and ES 6 modules are not implemented in any browser yet, which is why things need to be bundled.

提交回复
热议问题