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
OptimizeHtmlprototype
Optimize a file.
file
Object the current file.context
Object the processing context.options
Object options forhtml-minifier
.
#minifier
static
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 forhtml-minifier
.
License
MIT
Created by mkdoc on March 12, 2017