Minify HTML with fis
This plugin requires fis
If you haven't used fis before, be sure to check out the Getting Started guide, as it explains how to create a fis-conf.js as well as install and use fis plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install fis-postpackager-htmlmin -g
Run this task with the fis release -o
command.
Minifies HTML using html-minifier. Bugs regarding the output should be reported here.
See the html-minifier options.
removeComments: true,
collapseWhitespace: true,
minifyJS: true
fis.config.merge({
modules: {
postpackager: ['htmlmin']
},
settings: {
postpackager: {
"htmlmin": {
minifyJS: false,
removeComments: false
}
}
}
})