@shanzhai/minify-html-step
TypeScript icon, indicating that this package has built-in type declarations

0.0.15 • Public • Published

@shanzhai/minify-html-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which minifies a HTML file.

Usage

Within a trigger's event handler, return an instance of MinifyHtmlStep similar to the following:

new MinifyHtmlStep(
  `A description of the operation being performed`,
  new AnInputOfUnminifiedHtml(),
  new AnOutputOfMinifiedHtml()
);

Configuration Notes

The configuration used is highly aggressive, and the resulting HTML may actually be invalid, but should still function.

It will not be suitable for inclusion in other HTML documents, however.

Dependencies

This package has the following runtime dependencies:

Name Version
html-minifier 4.0.0

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

Readme

Keywords

none

Package Sidebar

Install

npm i @shanzhai/minify-html-step

Weekly Downloads

1

Version

0.0.15

License

MIT

Unpacked Size

6.05 kB

Total Files

5

Last publish

Collaborators

  • jameswilddev