Skip to content

Commit 4d87efc

Browse files
authoredJul 2, 2018
Update README.md
1 parent 33be839 commit 4d87efc

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
@@ -69,6 +69,8 @@ Copy a file from the `from` path to the `to` path.
6969

7070
Optionally, pass an `options.process` function (`process(contents)`) returning a string or a buffer who'll become the new file content. The process function will take a single contents argument who is the copied file contents as a `Buffer`.
7171

72+
`option.ignoreNoMatch` can be used to silence the error thrown if no files match the `from` pattern.
73+
7274
`from` can be a glob pattern that'll be match against the file system. If that's the case, then `to` must be an output directory. For a globified `from`, you can optionally pass in an `options.globOptions` object to change its pattern matching behavior. The full list of options are being described [here](https://github.com/isaacs/node-glob#options). The `nodir` flag is forced to be `true` in `globOptions` to ensure a vinyl object representing each matching directory is marked as `deleted` in the `mem-fs` store.
7375

7476
### `#copyTpl(from, to, context[, templateOptions [, copyOptions]])`

0 commit comments

Comments
 (0)
Please sign in to comment.