Commit dad39452 by Torkel Ödegaard

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

parent 1c50eb34
......@@ -28,6 +28,7 @@
"globals": {
"System": true,
"Promise": true,
"define": true,
"require": true,
"Chromath": false,
......
(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) {
......
......@@ -14,9 +14,9 @@ module.exports = function(grunt) {
'app/app',
'app/features/all',
'app/plugins/panel/**/module',
'app/plugins/datasource/graphite/datasource',
'app/plugins/datasource/influxdb/datasource',
'app/plugins/datasource/elasticsearch/datasource',
'app/plugins/datasource/graphite/module',
'app/plugins/datasource/influxdb/module',
'app/plugins/datasource/elasticsearch/module',
];
var expression = modules.join(' + ');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment