mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #44392 update(html-minifier-terser): 5.1 version by @peterblazejewicz
- version bump - minor detail update - correct TS header detail https://github.com/DanielRuf/html-minifier-terser/compare/v5.0.5...v5.1.0 Thanks!
This commit is contained in:
parent
3c7d4baaca
commit
fe2982b004
@ -13,7 +13,7 @@ const result = minify('<p title="blah" id="moo">foo</p>', {
|
||||
customEventAttributes: [/on-click/],
|
||||
decodeEntities: true,
|
||||
html5: false,
|
||||
ignoreCustomComments: [/^!/],
|
||||
ignoreCustomComments: [/^!/, /^\s*#/],
|
||||
ignoreCustomFragments: [/<%[\s\S]*?%>/, /<\?[\s\S]\*?\?>/],
|
||||
includeAutoGeneratedTags: false,
|
||||
keepClosingSlash: false,
|
||||
|
||||
6
types/html-minifier-terser/index.d.ts
vendored
6
types/html-minifier-terser/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for html-minifier-terser 5.0
|
||||
// Type definitions for html-minifier-terser 5.1
|
||||
// Project: https://danielruf.github.io/html-minifier-terser/
|
||||
// Definitions by: Piotr Błażejewicz (Peter Blazejewicz) <https://github.com/me>
|
||||
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace minify {
|
||||
@ -72,7 +72,7 @@ declare namespace minify {
|
||||
html5?: boolean;
|
||||
/**
|
||||
* Array of regex'es that allow to ignore certain comments, when matched
|
||||
* @default [/^!/]
|
||||
* @default [ /^!/, /^\s*#/ ]
|
||||
*/
|
||||
ignoreCustomComments?: RegExp[];
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user