I'm trying to implement offline-plugin with vue.js but I can't make it work. The offline-plugin is storing the files into the cache but when I check the offline checkbox in the network tab or when I turn off the wi-fi then I'm getting the No internet message. So it won't render it from cache. Do I miss something?
main.js
import * as OfflinePluginRuntime from 'offline-plugin/runtime'
OfflinePluginRuntime.install({
onUpdateReady: () => {
// Tells to new SW to take control immediately
runtime.applyUpdate()
},
onUpdated: () => {
// Reload the webpage to load into the new version
window.location.reload()
}
})
Hello,
I'm trying to implement
offline-plugin
withvue.js
but I can't make it work. Theoffline-plugin
is storing the files into the cache but when I check the offline checkbox in the network tab or when I turn off the wi-fi then I'm getting theNo internet
message. So it won't render it from cache. Do I miss something?main.js
webpack.base.conf.js