Skip to content

Commit ae3db76

Browse files
committed
docs: about escaping when use pattern
1 parent 8cc3e69 commit ae3db76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ $ posthtml --help
3535
$ posthtml input.html
3636
$ posthtml input.html -o output.html
3737
$ posthtml inputFolder/*.html !unicorn.html
38+
$ posthtml '**/*.html' '\!**/unicorn.html'
3839
$ posthtml input-one.html input-two.html -o outputFolder
3940
$ posthtml input.html -o output.html -c posthtml.js
4041
$ posthtml input.html -o output.html -u posthtml-bem --posthtml-bem.elemPrefix __
4142
$ posthtml inputFolder/*.html -o outputFolder
4243
$ posthtml inputFolder/**/*.html -o outputFolder -a
4344
$ posthtml inputFolder/**/*.html -o outputFolder -a -r inputFolder
4445
```
46+
> ⚠️ Please note that when using patterns on the command line `*` and `!` escaping of characters is necessary. When using as npc scripts, you only need to screen the pattern `*`. [About the reasons](https://github.com/posthtml/posthtml-cli/issues/317#issuecomment-676330082)
4547
4648
## Options
4749

0 commit comments

Comments
 (0)