From 3a778e6df262a79f85f144d785031d5da2ee8881 Mon Sep 17 00:00:00 2001 From: Pesche Date: Wed, 15 Jul 2020 01:48:09 +0200 Subject: [PATCH] Fix parameter for `minifyInPlace` (#5) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc622f6..780d604 100644 --- a/README.md +++ b/README.md @@ -126,8 +126,8 @@ const cfg = { minifyJs: false }; const minified = minifyHtml.minify("

Hello, world!

", cfg); // Alternatively, minify in place to avoid copying. -const source = Buffer.from("

Hello, world!

", cfg); -minifyHtml.minifyInPlace(source); +const source = Buffer.from("

Hello, world!

"); +minifyHtml.minifyInPlace(source, cfg); ``` minify-html is also available for TypeScript: