Closed diegomesata closed 9 years ago
Hello, some html files are minified but other doesn't. Do you have any idea? This is my config:
ngtemplates: { evalwebApp: { src: 'App/Partial//.html', dest: 'Scripts/templates.js', options: { //htmlmin: { collapseWhitespace: true, collapseBooleanAttributes: true } htmlmin: { collapseWhitespace: true, removeComments: true, // Only if you don't use comment directives! } } } }
"grunt-angular-templates": "0.5.7", "grunt-usemin": "3.0.0"
I found the anwser, I have template blocks within my html. This blocks aren't minified.
Hello, some html files are minified but other doesn't. Do you have any idea? This is my config:
ngtemplates: { evalwebApp: { src: 'App/Partial//.html', dest: 'Scripts/templates.js', options: { //htmlmin: { collapseWhitespace: true, collapseBooleanAttributes: true } htmlmin: {
collapseWhitespace: true, removeComments: true, // Only if you don't use comment directives!
} } } }
"grunt-angular-templates": "0.5.7", "grunt-usemin": "3.0.0"