When should I concat Angular2 App as opposite to SystemJS approach?

非 Y 不嫁゛ 提交于 2019-12-02 22:27:23

问题


When should I concat my Angular2 app, and when should I leave my SystemJS original approach (leaving different modules in different files)?


回答1:


It mainly depends on browser support.

The old way, pre http2, was to bundle everything into one big file. Now that we have http2 on the way, it's no longer necessary depending on what browsers and servers you target.

Please note that the server should be configured for http2 if you are serving many files, but both nginx and apache (with mod_http2) has http2 support, so you should be ok.

Browser support: ~70% according to Can I use.



来源:https://stackoverflow.com/questions/34651079/when-should-i-concat-angular2-app-as-opposite-to-systemjs-approach

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!