From 9b93ce70091bd8c6c1b9a020962697eae9fdac51 Mon Sep 17 00:00:00 2001 From: CoolOppo Date: Fri, 23 Oct 2020 19:03:58 -0400 Subject: [PATCH 1/2] Correctly demonstrate cmd tool concatenation. --- cmd/minify/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/minify/README.md b/cmd/minify/README.md index 5cf57febb1..8c06b392a3 100644 --- a/cmd/minify/README.md +++ b/cmd/minify/README.md @@ -145,16 +145,16 @@ $ minify -r -o out/ --match=\.js src ``` ### Concatenate -When multiple inputs are given and either standard output or a single output file, it will concatenate the files together. +When multiple inputs are given and the output is either standard output or a single file, it will concatenate the files together if you use the bundle option. If you input a folder, the files will be automatically concatenated. Concatenate **one.css** and **two.css** into **style.css**: ```sh -$ minify -o style.css one.css two.css +$ minify -b -o style.css one.css two.css ``` Concatenate all files in **styles/** into **style.css**: ```sh -$ minify -o style.css styles +$ minify -r -o style.css styles ``` You can also use `cat` as standard input to concatenate files and use gzip for example: From 8af60479382d39498862a7d9530720c22f5ca1bc Mon Sep 17 00:00:00 2001 From: CoolOppo Date: Mon, 26 Oct 2020 17:03:30 -0400 Subject: [PATCH 2/2] Correct cmd README now that the folder concat behavior is fixed --- cmd/minify/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/minify/README.md b/cmd/minify/README.md index 8c06b392a3..f18f7455b9 100644 --- a/cmd/minify/README.md +++ b/cmd/minify/README.md @@ -145,7 +145,7 @@ $ minify -r -o out/ --match=\.js src ``` ### Concatenate -When multiple inputs are given and the output is either standard output or a single file, it will concatenate the files together if you use the bundle option. If you input a folder, the files will be automatically concatenated. +When multiple inputs are given and the output is either standard output or a single file, it will concatenate the files together if you use the bundle option. Concatenate **one.css** and **two.css** into **style.css**: ```sh @@ -154,7 +154,7 @@ $ minify -b -o style.css one.css two.css Concatenate all files in **styles/** into **style.css**: ```sh -$ minify -r -o style.css styles +$ minify -r -b -o style.css styles ``` You can also use `cat` as standard input to concatenate files and use gzip for example: