UNPKG

@maizzle/framework

Version:

Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.

21 lines (20 loc) 767 B
import { Opts, Opts as MinifyOptions } from "html-crush"; //#region src/transformers/minify.d.ts /** * Minify an HTML string using `html-crush`. Maizzle's only default that * differs from html-crush's own defaults is `removeLineBreaks: true`. * * @param html HTML string to minify. * @param options [html-crush options](https://codsen.com/os/html-crush) merged * on top of the Maizzle defaults. * @returns The minified HTML string. * * @example * import { minify } from '@maizzle/framework' * * const tight = minify('<p> hello </p>', { removeIndentations: true }) */ declare function minify(html: string, options?: Partial<Opts>): string; //#endregion export { type MinifyOptions, minify }; //# sourceMappingURL=minify.d.ts.map