Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2023-01-04T16:59:41.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T16:41:43.265Z (3 months ago)
- Topics: guess-js, module, nuxt-js, predictive-prefetching
- Language: JavaScript
- Homepage:
- Size: 2.2 MB
- Stars: 21
- Watchers: 2
- 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)
![](https://github.com/daliborgogic/guess-module/workflows/Module%20CI/badge.svg)
## 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)