Skip to content

Commit

Permalink
docs: add descriptions about relative patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
yenshih committed Nov 11, 2019
1 parent 0a37edc commit 6b8c23a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Expand Up @@ -133,16 +133,17 @@ A string or an array of string, which represents the path to the resources you w

It supports [globbing](https://github.com/isaacs/node-glob). You could include many files using a file mask.

For example, `path.resolve(__dirname, './styles/*/*.less')` would include all `less` files from `variables` and `mixins` directories and ignore `reset.less` in such following structure.
For example, `'./styles/*/*.less'` would include all `less` files from `variables` and `mixins` directories and ignore `reset.less` in such following structure.

```
./styles
/variables
|-- fonts.less
|-- colors.less
/mixins
|-- size.less
|-- reset.less
./src <-- context
/styles
/variables
|-- fonts.less
|-- colors.less
/mixins
|-- size.less
|-- reset.less
```

Only supports `.css` `.sass` `.scss` `.less` `.styl` as resources file extensions.
Expand Down

0 comments on commit 6b8c23a

Please sign in to comment.