Skip to content

Commit

Permalink
docs: change doc content for the way we config pinia and vueuse. And …
Browse files Browse the repository at this point in the history
…public directory #7
  • Loading branch information
keck10361880-pic committed Aug 23, 2022
1 parent b92656c commit 103a85f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ yarn add -D pinia @pinia/nuxt

```ts
export default defineNuxtConfig({
buildModules: [
// https://composition-api.nuxtjs.org/getting-started/setup#quick-start
'@pinia/nuxt',
],
modules: ['@pinia/nuxt'],
})
```

Expand Down Expand Up @@ -203,7 +200,7 @@ yarn add -D @vueuse/nuxt

```ts
export default defineNuxtConfig({
buildModules: ['@vueuse/nuxt'],
modules: ['@vueuse/nuxt', '@pinia/nuxt'],
vueuse: {
ssrHandlers: true,
},
Expand Down
6 changes: 2 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
app: {
head: {
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/public/favicon.ico' },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
},
typescript: {
strict: true,
},
buildModules: ['@pinia/nuxt', '@vueuse/nuxt'],
modules: ['@vueuse/nuxt', '@pinia/nuxt'],
vueuse: {
ssrHandlers: true,
},
Expand Down

0 comments on commit 103a85f

Please sign in to comment.