Broccoli plugin to inline angular templates using $templateCache
npm install --save broccoli-angular-templates-cache
var angularTemplates = require("broccoli-angular-templates-cache");
module.exports = angularTemplates('templates', {
srcDir: './',
destDir: './',
prepend: 'partials/',
strip: 'templates/',
minify: {
collapseWhitespace: true
},
fileName:'templates.js',
moduleName:'angularApp'
});
path to source directory
path to destination directory
Type: String
Default: ``
Path fragment to insert before the template path
Type: String
Default: ``
Path fragment to remove from template path (from left)
Type: Object
Default: false
Configs to pass on html-minifier. If ommitted, the HTML is kept untouched
Name of $templateCache
module