mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
20 lines
550 B
JavaScript
20 lines
550 B
JavaScript
module.exports = function(config) {
|
|
return {
|
|
grafana: {
|
|
cwd: '<%= genDir %>',
|
|
src: ['app/**/*.html'],
|
|
dest: '<%= genDir %>/app/core/partials.js',
|
|
options: {
|
|
prefix: 'public/',
|
|
bootstrap: function(module, script) {
|
|
return "define('app/core/partials', ['app/core/core_module'], function(coreModule) { \n" +
|
|
"coreModule.default.run(['$templateCache', function($templateCache) { \n" +
|
|
script +
|
|
'\n}]);' +
|
|
'\n});';
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|