html-minifier
Version:
Highly effective, super-configurable, well-tested web page minifier
33 lines • 1.29 kB
TypeScript
/**
* Single source of truth for minifier option names, descriptions, types, and shared defaults
*/
export type OptionDefinition = {
/**
* Help text, phrased for the option’s primary CLI form
*/
description: string;
/**
* Help text for what enabling the option does, where `description` describes the negated form
*/
descriptionAffirmative?: string;
/**
* Key into the parser and JSON Schema type maps in cli.js and scripts/build-schema.js
*/
type: string;
};
/**
* @typedef {object} OptionDefinition
* @property {string} description Help text, phrased for the option’s primary CLI form
* @property {string} [descriptionAffirmative] Help text for what enabling the option does, where `description` describes the negated form
* @property {string} type Key into the parser and JSON Schema type maps in cli.js and scripts/build-schema.js
*/
/** @type {Record<string, OptionDefinition>} */
declare const optionDefinitions: Record<string, OptionDefinition>;
declare const optionDefaults: {
continueOnMinifyError: boolean;
ignoreCustomComments: RegExp[];
ignoreCustomFragments: RegExp[];
includeAutoGeneratedTags: boolean;
};
export { optionDefinitions, optionDefaults };
//# sourceMappingURL=option-definitions.d.ts.map