Fix parameter for `minifyInPlace` (#5)
This commit is contained in:
parent
892e10c92e
commit
3a778e6df2
|
@ -126,8 +126,8 @@ const cfg = { minifyJs: false };
|
|||
const minified = minifyHtml.minify("<p> Hello, world! </p>", cfg);
|
||||
|
||||
// Alternatively, minify in place to avoid copying.
|
||||
const source = Buffer.from("<p> Hello, world! </p>", cfg);
|
||||
minifyHtml.minifyInPlace(source);
|
||||
const source = Buffer.from("<p> Hello, world! </p>");
|
||||
minifyHtml.minifyInPlace(source, cfg);
|
||||
```
|
||||
|
||||
minify-html is also available for TypeScript:
|
||||
|
|
Loading…
Reference in New Issue