These are chat archives for systemjs/systemjs

7th
Oct 2016
Robin Bank
@inquiztr
Oct 07 2016 14:27
Hi, I have a question about deploying my project. My jspm folder now contains 2000+ dependencies/files. But when I inspect in browser the site is actually only loading about 60 files (some app modules, bootstrap, jquery etc). how do I deploy just the relevent files needed to my production server
I have been reading about bundling, and while I could do that, my server does have http2 so I would like to keep the files separate and take advantage of depcache
BStenfors
@BStenfors
Oct 07 2016 20:11
Has anybody had issues with angular material breaking the JSPM bundle using SystemJS builder v0.15.16? I keep getting an error in angular-ui-router stating Angular is not defined when I add angular-material v1.0.7 into the bundle.
BStenfors
@BStenfors
Oct 07 2016 20:44
Figured out a work around. If I import angular-material before angular-ui-router as follows it builds and works correctly.
import 'angular-material';
import 'angular-ui-router';
Lenny
@itslenny
Oct 07 2016 23:49
Does anyone know of a way to make jspm reference a sub folder? For cache invalidation we have our index.html in the web root then we have a sub folder that is the build number that contains all the other files (js, css, etc).
My current thinking is to just modify the "baseUrl" field in config.js manually as a build step, but I was wondering if there are any other options.