bug 1067961- minifying and versioning templates

This commit is contained in:
Cameron Dawson 2014-09-18 15:36:42 -07:00
Родитель af2e87f9a7
Коммит e017e215bc
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -119,6 +119,13 @@ module.exports = function(grunt) {
// injection
mangle: false
}
},
ngtemplates: {
app: {
cwd: 'app',
src: 'partials/**.html',
dest: 'templates.js'
}
}
});
@ -129,6 +136,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-usemin');
grunt.loadNpmTasks('grunt-cache-busting');
grunt.loadNpmTasks('grunt-angular-templates');
// Default tasks
grunt.registerTask('build', [
@ -143,7 +151,8 @@ module.exports = function(grunt) {
'cssmin',
'uglify',
'usemin',
'cache-busting'
'cache-busting',
'ngtemplates'
]);

Просмотреть файл

@ -21,7 +21,8 @@
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-clean": "^0.5.0",
"grunt-filerev": "^0.2.1",
"grunt-cache-busting": "0.0.10"
"grunt-cache-busting": "0.0.10",
"grunt-angular-templates": "~0.5.7"
},
"scripts": {
"test": "karma start webapp/config/karma.conf.js --single-run --browsers Firefox"