mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
Remove offline example
This commit is contained in:
parent
56272eb5fd
commit
592f8cc733
@ -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 }
|
||||
]
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"name": "offline-config-nuxt",
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
},
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<div>This is offline test</div>
|
||||
</template>
|
@ -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()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue
Block a user