diff --git a/examples/offline-nuxt/nuxt.config.js b/examples/offline-nuxt/nuxt.config.js deleted file mode 100644 index 915a70f372..0000000000 --- a/examples/offline-nuxt/nuxt.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - offline: true, // true or https://github.com/NekR/offline-plugin/blob/master/docs/options.md - plugins: [ - { src: '~plugins/offline.js', ssr: false } - ] -} diff --git a/examples/offline-nuxt/package.json b/examples/offline-nuxt/package.json deleted file mode 100644 index e202ad873a..0000000000 --- a/examples/offline-nuxt/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "offline-config-nuxt", - "scripts": { - "dev": "nuxt", - "build": "nuxt build", - "start": "nuxt start" - }, - "dependencies": { - "nuxt": "latest" - } -} diff --git a/examples/offline-nuxt/pages/index.vue b/examples/offline-nuxt/pages/index.vue deleted file mode 100644 index 5846d84ea3..0000000000 --- a/examples/offline-nuxt/pages/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/examples/offline-nuxt/plugins/offline.js b/examples/offline-nuxt/plugins/offline.js deleted file mode 100644 index 7224e02c00..0000000000 --- a/examples/offline-nuxt/plugins/offline.js +++ /dev/null @@ -1,19 +0,0 @@ -if (process.env.NODE_ENV === 'production') { - var OfflinePlugin = require('offline-plugin/runtime') - window.onNuxtReady(() => { - OfflinePlugin.install({ - onInstalled: function () { - console.log('Offline plugin installed.') // eslint-disable-line no-console - }, - onUpdating: function () { - - }, - onUpdateReady: function () { - OfflinePlugin.applyUpdate() - }, - onUpdated: function () { - window.location.reload() - } - }) - }) -}