Skip to content

Commit

Permalink
docs: improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
klu235 committed Apr 8, 2023
1 parent 59bdbb2 commit 8e93128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -1003,7 +1003,7 @@ module.exports = {

### Examples

#### Different variants `from` (`glob`, `file` or `dir`).
#### Different variants of `from` (`glob`, `file` or `dir`).

Take for example the following file structure:

Expand Down Expand Up @@ -1039,7 +1039,7 @@ src/directory-nested/deep-nested/deepnested-file.txt,
src/directory-nested/nested-file.txt
```

If you want only content `src/directory-nested/`, you should only indicate `glob` in `from`. The path to the folder in which the search should take place, should be moved to `context`.
If you don't want the result paths to start with `src/directory-nested/`, then you should move `src/directory-nested/` to `context`, such that only the glob pattern `**/*` remains in `from`:

**webpack.config.js**

Expand Down

0 comments on commit 8e93128

Please sign in to comment.