Skip to content

Commit

Permalink
docs(Nuxt3): use .client suffix
Browse files Browse the repository at this point in the history
Signed-off-by: Wailan Tirajoh <[email protected]>
  • Loading branch information
WailanTirajoh authored Nov 26, 2024
1 parent c3c230b commit b1619b2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default defineComponent({
</script>
```

For Nuxt 3, create a file in `plugins/v-offline.ts`
For Nuxt 3, create a file in `plugins/v-offline.client.ts`

```js
import { VOffline } from 'v-offline';
Expand All @@ -113,20 +113,6 @@ export default defineNuxtPlugin((nuxtApp) => {
});
```

then import the file in `nuxt.config.{j|t}s`:

```js
export default {
// ...
plugins: [
// ...
{ src: '~/plugins/v-offline', mode: 'client' },
// ...
],
// ...
};
```

### Example

```html
Expand Down

0 comments on commit b1619b2

Please sign in to comment.