Skip to main content
Module

x/lume/deps/minify_html.ts>Options

🔥 Static site generator for Deno 🦕
Very Popular
Latest
interface Options
import { type Options } from "https://deno.land/x/lume@v2.1.4/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
keep_ssi_comments: boolean

Keep SSI comments.

optional
preserve_brace_template_syntax: boolean

When {{, {#, or {% are seen in content, all source code until the subsequent matching closing }}, #}, or %} respectively gets piped through untouched.

optional
preserve_chevron_percent_template_syntax: boolean

When <% is seen in content, all source code until the subsequent matching closing %> gets piped through untouched.

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.