Commit c22c4b86 by Torkel Ödegaard

fixed string replace issue that caused problems, this removes build cache…

fixed string replace issue that caused problems, this removes build cache busting in requirejs, will need to fix that later
parent 50771b07
......@@ -26,7 +26,7 @@ function (angular, $, _, appLevelRequire) {
// features if we define them after boot time
register_fns = {};
// // This stores the Kibana revision number, @REV@ is replaced by grunt.
// This stores the grafana version number
app.constant('grafanaVersion',"@grafanaVersion@");
// Use this for cache busting partials
......
......@@ -26,15 +26,11 @@ module.exports = function(grunt) {
options: {
replacements: [
{
pattern: /(?:^|\/\/)(.*)@REV@/,
replacement: '$1'+desc.object
},
{
pattern: /@REV@/,
pattern: /@REV@/g,
replacement: desc.object
},
{
pattern: /@grafanaVersion@/,
pattern: /@grafanaVersion@/g,
replacement: 'v<%= pkg.version %>'
}
]
......
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