Skip to content

Commit

Permalink
docs: Webpack copy plugin error fix (#250)
Browse files Browse the repository at this point in the history
I was testing this plugin implementation and I got an "Options should be array" error.
After investigation I found that the docs are wrong.

See more here: webpack-contrib/copy-webpack-plugin#455
  • Loading branch information
Callan003 committed Sep 23, 2022
1 parent ca26d7c commit e27ea76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/copy-library-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ const partytown = require('@builder.io/partytown/utils');

module.exports = {
plugins: [
new CopyPlugin({
patterns: [
new CopyPlugin([
{
from: partytown.libDirPath(),
to: path.join(__dirname, 'public', '~partytown'),
},
],
}),
]),
],
};
```
Expand Down

1 comment on commit e27ea76

@vercel
Copy link

@vercel vercel bot commented on e27ea76 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.