6
6
[ ![ NPM Downloads] [ downloads-image ]] [ downloads-url ]
7
7
[ ![ MIT] [ license-image ]] ( LICENSE )
8
8
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 ) .
10
10
11
11
## Install
12
12
@@ -65,8 +65,8 @@ Example for `lit-html` and `lit-element`:
65
65
66
66
### ` htmlMinifier `
67
67
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 ) .
70
70
71
71
Note for usage with ` lit-html ` and ` lit-element ` :
72
72
@@ -82,7 +82,7 @@ throw an exception:
82
82
```
83
83
84
84
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
86
86
it deletes the point where ` ${readonly} ` goes into the final output.
87
87
88
88
- ` removeComments ` will cause the following template to throw an exception:
@@ -244,7 +244,7 @@ export should be processed.
244
244
* lit.html is processed because ` "lit-html": ["html"] ` .
245
245
* litHtml is processed because ` "lit-element": ["html"] ` .
246
246
* 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
248
248
contains CSS, without it the template would be processed as HTML.
249
249
* ` this.html ` in MyHyperHTMLElement is processed because
250
250
` "hyperhtml-element": [{"name": null, "member": "html"}] ` specifies that the ` html ` member
0 commit comments