makestatic-optimize-html

1.0.28 • Public • Published

Optimize HTML

Optimize HTML files

Optimizes HTML files using html-minifier.



Install

yarn add makestatic-optimize-html

API

OptimizeHtml

Compress HTML files.

See Also

.sources

OptimizeHtml.prototype.sources(file, context[, options])

Optimize a file.

  • file Object the current file.
  • context Object the processing context.
  • options Object options for html-minifier.

#minifier

static minifier(file, context[, options])

Performs minification on a single file using html-minifier.

Assigns the compressed HTML to the content property of the file.

  • file Object the file to optimize.
  • context Object the processing context.
  • options Object options for html-minifier.

License

MIT


Created by mkdoc on March 12, 2017

Package Sidebar

Install

npm i makestatic-optimize-html

Weekly Downloads

0

Version

1.0.28

License

MIT

Last publish

Collaborators

  • muji
  • tmpfs