Skip to content

Commit

Permalink
Merge pull request #348 from CoolOppo/patch-1
Browse files Browse the repository at this point in the history
Correctly demonstrate cmd tool concatenation.
  • Loading branch information
tdewolff authored Oct 26, 2020
2 parents 53539dc + 8af6047 commit ec24b2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/minify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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 -b -o style.css styles
```

You can also use `cat` as standard input to concatenate files and use gzip for example:
Expand Down

0 comments on commit ec24b2a

Please sign in to comment.