Skip to content

Commit

Permalink
Add instruction about Nuxt v2.4.0 (#16)
Browse files Browse the repository at this point in the history
According to Atinux's comment nuxt/nuxt#4574 (comment), the "native" prefetch  feature of Nuxt needs to be disabled for Guess.js to work. So I thought it would good to update the Readme accordingly.
  • Loading branch information
mornir authored and daliborgogic committed Jun 23, 2019
1 parent 2e40d57 commit 898f1b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@

- Add `@nuxtjs/guess` dependency using yarn or npm to your project
- Add `@nuxtjs/guess` to modules section of `nuxt.config.js`
- If using Nuxt > 2.4.0, set `router.prefetchLinks` to `false` in `nuxt.config.js`

```javascript
{
{
modules: [
[ '@nuxtjs/guess', { GA: 'XXXXXXX' }]
]
}
]
},
// Nuxt > 2.4.0
router: {
prefetchLinks: false
}
```

Options given directly to [guess-webpack options](https://www.npmjs.com/package/guess-webpack#advanced-usage).
Expand Down

0 comments on commit 898f1b9

Please sign in to comment.