简体   繁体   中英

Minify Angular 2 rc1

I'm developing a django web app using Angular 2. With the new Angular 2 RC1 (I was using beta) now my app loading looks like this:

在此输入图像描述

322 requests just to load a simple list

Since I'm developing with django test server, performances are not great, so it takes 16 seconds (or more) to satisfy all the requests.

I'm not an Angular expert, so I'm here asking: is there a way to unify/minify/uglify all these JavaScript files?

Based on this comment in the Angular issue log, I think you'll need to wait for them to release bundles at some point:

http://github.com/angular/angular/issues/8412#issuecomment-216469197

"we're not yet shipping bundles with the new RC (soon)"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM