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

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

问题描述

在发布候选版本之前,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?

推荐答案

为了获得更轻量的项目,您应该检查 JSPM 来捆绑您的项目.

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与System.js捆绑在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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