我什么时候应该Concat的Angular2应用为相反SystemJS方法? [英] When should I concat Angular2 App as opposite to SystemJS approach?

查看:140
本文介绍了我什么时候应该Concat的Angular2应用为相反SystemJS方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我Concat的我Angular2的应用程序,当我要离开我的SystemJS原始的方法(留在不同的文件不同的模块)?

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

推荐答案

这主要依赖于浏览器的支持。

It mainly depends on browser support.

的老办​​法,pre http2,是一切都捆绑成一个大文件。现在,我们有http2的方式,它不再需要依赖于你的目标是什么浏览器和服务器。

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.

请注意,服务器应配置为http2如果你正在为许多文件,但两者的nginx和Apache(与mod_http2)有http2支持,所以你应该确定。

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.

浏览器支持:〜根据 70%,我可以用

这篇关于我什么时候应该Concat的Angular2应用为相反SystemJS方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆