fix(build): fixed minor issue in systemjs builder, and added SystemJs cache buster

This commit is contained in:
Torkel Ödegaard
2016-02-10 06:50:17 +01:00
parent 1c50eb345c
commit dad394523f
3 changed files with 13 additions and 3 deletions

View File

@@ -1,6 +1,15 @@
(function bootGrafana() {
'use strict';
var systemLocate = System.locate;
System.locate = function(load) {
var System = this;
return Promise.resolve(systemLocate.call(this, load)).then(function(address) {
return address + System.cacheBust;
});
};
System.cacheBust = '?bust=' + Date.now();
System.import('app/app').then(function(app) {
app.default.init();
}).catch(function(err) {