Skip to content

Commit 38f01cc

Browse files
committed
Adds documentation about opts.excludes
See #11
1 parent 7b396ab commit 38f01cc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ property | default | descriptions
195195
**opts.root** | `process.cwd()` | usually no need to set it
196196
**opts.handlers** | `{}` | see the section below
197197
**opts.patterns** | `[]` | see the section below
198+
**opts.excludes** | `[]` | see the section below
198199
**opts.update** | `'once'` | `'never'` or `'allways'`
199200
**opts.refresh** | `true` | set `false` to skip refreshing on starting
200201
**opts.watch** | `false` | set `true` to detect changes
@@ -248,6 +249,16 @@ You can also specify the custom handler for the pattern:
248249
}
249250
```
250251

252+
### opts.excludes
253+
254+
This option excludes the files from compiling and copying (when exporting). Cache directory and `'node_modules/**'` are always excluded. For example:
255+
256+
```javascript
257+
{
258+
excludes: ['no-compile/**']
259+
}
260+
```
261+
251262
## Plugins
252263

253264
Plugins are the interface to compilers like Rollup or PostCSS. Actually, these are the thin wrapper of these libraries:

0 commit comments

Comments
 (0)