Skip to content

Commit

Permalink
docs: Updated weback copy plugin example code (#291)
Browse files Browse the repository at this point in the history
Update the sample code as per copy webpack plugin docs -> https://v4.webpack.js.org/plugins/copy-webpack-plugin/
  • Loading branch information
nisheed2440 committed Nov 17, 2022
1 parent 175bdcf commit 10d6020
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/copy-library-files.md
Expand Up @@ -102,14 +102,17 @@ const partytown = require('@builder.io/partytown/utils');

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

```
## Laravel Mix

Expand Down

1 comment on commit 10d6020

@vercel
Copy link

@vercel vercel bot commented on 10d6020 Nov 17, 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.