pluginMinifyHtmlLiterals
Usage
This plugin is typically only used for production builds. It will minify any html it finds within html
or css
template string literals. (ie: conts str = html`<div>I'm an html string literal</div>`;
)This plugin uses the npm
module minify-html-literals.
import { fusebox, pluginMinifyHtmlLiterals } from 'fuse-box';
fusebox({
plugins: [pluginMinifyHtmlLiterals()],
});
You can also use minify-html-literals module options, these will be added after the source content. See npm module minify-html-literals for all options you can use.
fusebox({
plugins: [pluginMinifyHtmlLiterals(/* minify-html-literals npm module options */),
});