如何将 Angular2 RC1 与 systemjs 捆绑在一起 [英] How to bundle Angular2 RC1 with systemjs

查看:19
本文介绍了如何将 Angular2 RC1 与 systemjs 捆绑在一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发布候选版本之前,angular 提供了一个捆绑文件.由于发布候选版本没有更多的捆绑文件.包括 angular2 和 rxjs,我的应用程序现在在 7 秒内发出 671 个请求来加载.这阻碍了发展.

Prior to the release candidates angular supplied a bundled file. Since the release candidates there's no more bundled file. Including angular2 and rxjs my app now makes 671 requests over 7secs to load. This has crippled development.

有谁知道如何捆绑 angular 和 rxjs 并将它们包含在 system.config 中?

Does anyone know how to bundle angular and rxjs and include these in system.config?

推荐答案

为了获得更轻量级的项目,您应该检查 SystemJS BuilderJSPM 捆绑您的项目.

In order to get a lighter weight project you should check SystemJS Builder or JSPM to bundle your project.

示例种子项目:https://github.com/madhukard/angular2-jspm-seed

@BrunoGarcia 在这里提供了一个非常好的信息:https://stackoverflow.com/a/37098964/5706293

@BrunoGarcia gave a very nice info here: https://stackoverflow.com/a/37098964/5706293

这篇关于如何将 Angular2 RC1 与 systemjs 捆绑在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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