Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/minify_html.ts>Options

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface Options
import { type Options } from "https://deno.land/x/lume@v1.17.2/deps/minify_html.ts";

Properties

optional
do_not_minify_doctype: boolean

Do not minify DOCTYPEs. Minified DOCTYPEs may not be spec compliant.

optional
ensure_spec_compliant_unquoted_attribute_values: boolean

Ensure all unquoted attribute values in the output do not contain any characters prohibited by the WHATWG specification.

optional
keep_closing_tags: boolean

Do not omit closing tags when possible.

optional
keep_html_and_head_opening_tags: boolean

Do not omit <html> and <head> opening tags when they don't have attributes.

optional
keep_spaces_between_attributes: boolean

Keep spaces between attributes when possible to conform to HTML standards.

optional
keep_comments: boolean

Keep all comments.

optional
minify_js: boolean

If enabled, content in <script> tags with a JS or no MIME type will be minified using minify-js.

optional
minify_css: boolean

If enabled, CSS in <style> tags and style attributes will be minified.

optional
remove_bangs: boolean

Remove all bangs.

optional
remove_processing_instructions: boolean

Remove all processing_instructions.