First, you need to have gobble installed - see the gobble readme for details. Then,
npm install --save-dev gobble-html-minifier
var gobble = ;moduleexports = ;
options argument, if specified, is passed to
html-minifier. Please refer to the original documentation.
There is one extra option
preset in this plugin to try to make developer's life easier.
preset option accepts one of three string value:
"all". They correspond to the presets found on html-minifier's Github page. If left undefined or when set to unsupported value, it doesn't affect other options at all. Otherwise, the preset options act as the default and other options passed in overrides the preset.
// to use the "minimal" preset alone;// use the "minimal" preset but turn off "removeComments";