mirror of https://github.com/grafana/grafana
worked on css and js asset reving, and angular partial precaching, still need to fix panel module.html, issue #418
parent
d499f4e0d0
commit
f799ded434
@ -1,9 +1,18 @@ |
|||||||
module.exports = function(config) { |
module.exports = function(config) { |
||||||
return { |
return { |
||||||
kibana: { |
grafana: { |
||||||
cwd: '<%= tempDir %>', |
cwd: '<%= tempDir %>', |
||||||
src: 'app/**/*.html', |
src: 'app/partials/**/*.html', |
||||||
dest: '<%= tempDir %>/app/components/partials.js', |
dest: '<%= tempDir %>/app/components/partials.js', |
||||||
|
options: { |
||||||
|
bootstrap: function(module, script) { |
||||||
|
return "define('components/partials', ['angular'], function(angular) { \n" + |
||||||
|
"angular.module('kibana').run(['$templateCache', function($templateCache) { \n" + |
||||||
|
script + |
||||||
|
'\n}]);' + |
||||||
|
'\n});'; |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
||||||
}; |
}; |
||||||
}; |
}; |
||||||
@ -1,8 +1,5 @@ |
|||||||
module.exports = function(config) { |
module.exports = function(config) { |
||||||
return { |
return { |
||||||
html: '<%= destDir %>/index.html', |
html: '<%= destDir %>/index.html', |
||||||
options: { |
|
||||||
assetsDirs: ['<%= destDir %>/css/'] |
|
||||||
} |
|
||||||
}; |
}; |
||||||
}; |
}; |
||||||
|
|||||||
Loading…
Reference in new issue