import { type MinifyOpts } from "https://deno.land/x/ter@0.6.4/deps.ts";
Most of the options are disabled by default
Properties
Don't leave any spaces between display:inline; elements when collapsing. Must be used in conjunction with collapseWhitespace=true
Always collapse to 1 space (never remove it entirely). Must be used in conjunction with collapseWhitespace=true
Arrays of regex'es that allow to support custom attribute assign expressions (e.g. '<div flex?="{{mode != cover}}"></div>'
)
Arrays of regex'es that allow to support custom attribute surround expressions (e.g. <input {{#if value}}checked="checked"{{/if}}>
)
Array of regex'es that allow to ignore certain fragments, when matched (e.g. <?php ... ?>
, {{ ... }}
, etc.)
Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points
Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break.
Must be used in conjunction with collapseWhitespace=true
Array of strings corresponding to types of script elements to process through minifier
(e.g. text/ng-template
, text/x-handlebars-template
, etc.)