🤖 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:
Piotr Błażejewicz (Peter Blazejewicz) 2020-05-04 22:21:36 +02:00 committed by GitHub
parent 3c7d4baaca
commit fe2982b004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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[];
/**