I had the exact same problem, was actually looking at this post for an answer. Here is what I did to solve the problem.
- Modify your project to use webpack. Follow this short tutorial:
Angular2 QuickStart SystemJS To Webpack - This method will give you a single javascript file however it is quite large (my project file was over 5MB) and needs to be minified. To do this I installed webpack globaly:
npm install webpack -g
. Once installed, runwebpack -p
from your apps root directory. This brought my file size down to about 700KB
From 20 seconds and 350 requests down to 3 seconds and 7 requests.