Skip to content

Commit

Permalink
docs: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Feb 4, 2024
1 parent 2c58d97 commit c83af3b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/solid.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ Adopting [this strategy](https://partytown.builder.io/copy-library-files#vite) f

```js
// vite.config.js
[...]
...
import { join } from 'path';
import { partytownVite } from '@builder.io/partytown/utils';

export default defineConfig({
plugins: [
[...]
...
partytownVite({
dest: join(__dirname, 'dist', '~partytown'),
}),
],
[...]
...
});
```

Expand All @@ -36,15 +36,15 @@ The snippet below shows you how to setup Partytown scripts in your `index.html`
<!-- Partytown config properties -->
<script>
partytown = {
debug: true,
...
};
</script>

<!-- Inlined Partytown Snippet -->
<script src="/~partytown/debug/partytown.js"></script>
<script type="text/partytown">
console.log("New partytown script.");
console.log("Third-Party Script goes here!");
console.log("New Partytown script.");
console.log("Third-Party script goes here!");
</script>
</head>
```

0 comments on commit c83af3b

Please sign in to comment.