Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@nuxtjs/guess

1.0.3 • Public • Published

guess-module

Guess.js integration for Nuxt.js with 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
export default {
  modules: [
    [ '@nuxtjs/guess', { GA: 'XXXXXXX' }]
   ],
   // Nuxt > 2.4.0
  router: {
    prefetchLinks: false
  }
 }

Options given directly to guess-webpack options.

Usage

Nothing more to do, @nuxtjs/guess will automagically prefetch the routes depending of your Google Analytics stats 😎

License

MIT

Keywords

Install

npm i @nuxtjs/guess

DownloadsWeekly Downloads

15

Version

1.0.3

License

MIT

Unpacked Size

7.75 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar