Skip to content

Commit

Permalink
docs: context option is a string, not array (#269)
Browse files Browse the repository at this point in the history
Following the example, webpack emits an error

```sh
TypeError: Path must be a string.
```

Replaced with string, which actually works fine in the latest webpack 4.15.0
  • Loading branch information
grgur authored and evilebottnawi committed Jul 5, 2018
1 parent 1f92729 commit 5474889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ and so on...
[
new CopyWebpackPlugin(
[ ...patterns ],
{ context: [ '/app' ] }
{ context: '/app' }
)
]
```
Expand Down

0 comments on commit 5474889

Please sign in to comment.