Minify templates and concat into one file.
This commit is contained in:
parent
3fa715298e
commit
5c568e649f
5 changed files with 33 additions and 2 deletions
21
Gruntfile.js
21
Gruntfile.js
|
@ -182,6 +182,26 @@ module.exports = function (grunt) {
|
|||
}
|
||||
},
|
||||
|
||||
html2js: {
|
||||
options: {
|
||||
base: 'app',
|
||||
htmlmin: {
|
||||
collapseBooleanAttributes: true,
|
||||
collapseWhitespace: true,
|
||||
removeAttributeQuotes: true,
|
||||
removeComments: true,
|
||||
removeEmptyAttributes: true,
|
||||
removeRedundantAttributes: true,
|
||||
removeScriptTypeAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true
|
||||
}
|
||||
},
|
||||
main: {
|
||||
src: ['<%= yeoman.app %>/views/{*,**/*}.html'],
|
||||
dest: '.tmp/scripts/templates.js'
|
||||
}
|
||||
},
|
||||
|
||||
// Renames files for browser caching purposes
|
||||
rev: {
|
||||
dist: {
|
||||
|
@ -396,6 +416,7 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('build', [
|
||||
'clean:dist',
|
||||
'bowerInstall',
|
||||
'html2js',
|
||||
'useminPrepare',
|
||||
'concurrent:dist',
|
||||
'autoprefixer',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue