[![npm](https://img.shields.io/npm/dt/@nuxtjs/offline.svg?style=flat-square)](https://npmjs.com/package/@nuxtjs/offline) [![npm (scoped with tag)](https://img.shields.io/npm/v/@nuxtjs/offline/latest.svg?style=flat-square)](https://npmjs.com/package/@nuxtj

Usage no npm install needed!

<script type="module">
  import nuxtjsOffline from 'https://cdn.skypack.dev/@nuxtjs/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.


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

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