gulps/htmlmin.js
'use strict';
/**
* Minify HTML files.
*/
module.exports = function(gulp, plugins) {
return function() {
return gulp.src('./app/*.html')
.pipe(plugins.replace('<html class="no-js">', '<html manifest="app.appcache" class="no-js">'))
.pipe(plugins.htmlmin({
collapseWhitespace : true,
quoteCharacter : '\''
}))
.pipe(gulp.dest('./dist'));
};
};