ngtemplates.js 550 B

12345678910111213141516171819
  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. prefix: 'public/',
  9. bootstrap: function(module, script) {
  10. return "define('app/core/partials', ['app/core/core_module'], function(coreModule) { \n" +
  11. "coreModule.default.run(['$templateCache', function($templateCache) { \n" +
  12. script +
  13. '\n}]);' +
  14. '\n});';
  15. }
  16. }
  17. }
  18. };
  19. };