Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Offline

npm npm (scoped with tag)

This module only works in production mode

Note: Please prefer using pwa-module module instead for full offline support.

  • Registers service worker
  • Scopes cacheName to allow having multi apps in same domain.

Setup

  • Add @nuxtjs/offline dependency using yarn or npm to your project
  • Add @nuxtjs/offline to modules section of nuxt.config.js
  modules: [
    // Simple usage
   '@nuxtjs/offline',

   // With options
   ['@nuxtjs/offline', { /* ... */ }],
  ]