https://github.com/daliborgogic/guess-module
Guess.js integration for Nuxt.js with guess-webpack
https://github.com/daliborgogic/guess-module
guess-js module nuxt-js predictive-prefetching
Last synced: 3 months ago
JSON representation
Guess.js integration for Nuxt.js with guess-webpack
- Host: GitHub
- URL: https://github.com/daliborgogic/guess-module
- Owner: daliborgogic
- License: mit
- Created: 2018-09-07T10:06:56.000Z (almost 8 years ago)
- Default Branch: dev
- Last Pushed: 2023-01-04T16:59:41.000Z (over 3 years ago)
- Last Synced: 2025-03-14T13:47:32.413Z (over 1 year ago)
- Topics: guess-js, module, nuxt-js, predictive-prefetching
- Language: JavaScript
- Homepage:
- Size: 2.2 MB
- Stars: 21
- Watchers: 1
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guess-module
>[ Guess.js](https://github.com/guess-js/guess) integration for [Nuxt.js](https://github.com/nuxt/nuxt.js/) with [guess-webpack](https://www.npmjs.com/package/guess-webpack)

## Setup
- 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
export default {
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).
## Usage
Nothing more to do, `@nuxtjs/guess` will automagically prefetch the routes depending of your Google Analytics stats 😎
## License
[MIT](https://opensource.org/licenses/MIT)