ngtemplates.js 523 B

123456789101112131415161718
  1. module.exports = function(config) {
  2. return {
  3. grafana: {
  4. cwd: '<%= genDir %>',
  5. src: ['app/**/*.html'],
  6. dest: '<%= genDir %>/app/core/partials.js',
  7. options: {
  8. bootstrap: function(module, script) {
  9. return "define('app/core/partials', ['app/core/core_module'], function(coreModule) { \n" +
  10. "coreModule.default.run(['$templateCache', function($templateCache) { \n" +
  11. script +
  12. '\n}]);' +
  13. '\n});';
  14. }
  15. }
  16. }
  17. };
  18. };