Skip to content

Commit

Permalink
fix(docs): move Vite config 'plugins' property (#506)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: gioboa <giorgiob.boa@gmail.com>
  • Loading branch information
alexmacarthur and gioboa authored Jan 7, 2024
1 parent e76d90a commit 58fd559
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docs/copy-library-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,11 @@ import path from 'path';
import { partytownVite } from '@builder.io/partytown/utils';

export default ({ command }) => ({
build: {
plugins: [
partytownVite({
dest: path.join(__dirname, 'dist', '~partytown'),
}),
],
},
plugins: [
partytownVite({
dest: path.join(__dirname, 'dist', '~partytown'),
}),
],
});
```

Expand All @@ -106,14 +104,14 @@ module.exports = {
patterns: [
{
from: partytown.libDirPath(),
to: path.join(__dirname, "public", "~partytown"),
to: path.join(__dirname, 'public', '~partytown'),
},
],
}),
],
};

```

## Laravel Mix

Below is an example of using [Mix's copy()](https://laravel-mix.com/docs/6.0/copying-files/) to copy the source `lib` directory found in the [@builder.io/partytown](https://www.npmjs.com/package/@builder.io/partytown) package, to the `public/~partytown/` directory:
Expand Down

1 comment on commit 58fd559

@vercel
Copy link

@vercel vercel bot commented on 58fd559 Jan 7, 2024

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.