Skip to content

Commit f54f8e7

Browse files
committed
chore: Update README to reference html-minifier-terser
1 parent f81fe58 commit f54f8e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![NPM Downloads][downloads-image]][downloads-url]
77
[![MIT][license-image]](LICENSE)
88

9-
Minify HTML in tagged template strings using [html-minifier](https://github.com/kangax/html-minifier).
9+
Minify HTML in tagged template strings using [html-minifier-terser](https://github.com/DanielRuf/html-minifier-terser).
1010

1111
## Install
1212

@@ -65,8 +65,8 @@ Example for `lit-html` and `lit-element`:
6565

6666
### `htmlMinifier`
6767

68-
The value of this property is passed unmodified to html-minifier. See the
69-
[html-minifier docs](https://github.com/kangax/html-minifier#options-quick-reference).
68+
The value of this property is passed unmodified to html-minifier-terser. See the
69+
[html-minifier-terser docs](https://github.com/DanielRuf/html-minifier-terser#options-quick-reference).
7070

7171
Note for usage with `lit-html` and `lit-element`:
7272

@@ -82,7 +82,7 @@ throw an exception:
8282
```
8383

8484
This exception is for two reasons. First because it means the chosen options have
85-
caused `html-minifier` to change the meaning of the HTML template. Second because
85+
caused `html-minifier-terser` to change the meaning of the HTML template. Second because
8686
it deletes the point where `${readonly}` goes into the final output.
8787

8888
- `removeComments` will cause the following template to throw an exception:
@@ -244,7 +244,7 @@ export should be processed.
244244
* lit.html is processed because `"lit-html": ["html"]`.
245245
* litHtml is processed because `"lit-element": ["html"]`.
246246
* css is processed because `"lit-element": [{"name": "css", "encapsulation": "style"}]`.
247-
The `encapsulation` argument ensures that `html-minifier` understands that the template
247+
The `encapsulation` argument ensures that `html-minifier-terser` understands that the template
248248
contains CSS, without it the template would be processed as HTML.
249249
* `this.html` in MyHyperHTMLElement is processed because
250250
`"hyperhtml-element": [{"name": null, "member": "html"}]` specifies that the `html` member

0 commit comments

Comments
 (0)