Skip to content

Files

Latest commit

Jul 27, 2017
f254e6d · Jul 27, 2017

History

History

htmlmin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 17, 2017
Jun 17, 2017
Jun 17, 2017
Jul 27, 2017
Jun 17, 2017

@taskr/htmlmin npm

Minify HTML with Taskr.

Install

npm install --save-dev @taskr/htmlmin

Usage

exports.minify = function * (task) {
  yield task.source('src/*.html')
    .htmlmin({ removeComments:false })
    .target('dist');
}

API

.htmlmin(options)

This plugin offers no unique options.

However, it has a number of default settings that you may override.

Please see HTML-Minifier's Options for a full list of available options.

Support

Any issues or questions can be sent to the Taskr monorepo.

Please be sure to specify that you are using @taskr/htmlmin.

License

MIT © Luke Edwards