generator-appverse-ionic
Version:
Appverse Ionic generator
31 lines (30 loc) • 922 B
JavaScript
;
//produce minified html in the dist folder
module.exports = {
dist: {
options: {
removeComments: true,
removeCommentsFromCDATA: true,
removeCDATASectionsFromCDATA: true,
collapseWhitespace: true,
//conservativeCollapse: true,
collapseBooleanAttributes: true,
removeAttributeQuotes: false,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeOptionalTags: true,
keepClosingSlash: true,
},
files: [{
expand: true,
cwd: '<%= paths.dist %>',
src: [
'*.html',
'components/**/*.html',
'template/**/*.html'
],
dest: '<%= paths.dist %>'
}]
}
};