All Questions
9 questions
2
votes
0
answers
653
views
How to disable prefetch in VueJS PWA?
When you generate a PWA app using vue ui you can expect the following behavior.
All files you have in your dist folder are precached by browsers.
In other words, when you navigate to your app a ...
0
votes
0
answers
548
views
Importing modules in Workbox + Webpack custom Service Worker
I'm using the vue-cli + Webpack + Workbox setup (i.e. the setup uses register-service-worker).
I have setup my vue.config.js to use a custom service worker.
I want to import modules (e.g. auth, api ...
3
votes
2
answers
1k
views
why service worker download new content automatically, but doesn't update?
I register service worker this way:
/* eslint-disable no-console */
import { register } from 'register-service-worker'
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}...
7
votes
0
answers
433
views
Vue PWA i18n in Service Worker
for a university project my team and I have developed a Webapp using Vue.js (Vue-Cli).
For translating the app we have integrated vue-i18n.
Recently we upgraded the app to the use of a service-worker ...
1
vote
0
answers
166
views
Vue cli service worker disabling
I can't figure out how to stop my browsers from caching old versions of my web app. I have already commented out everything in registerServiceWorker.js. I deleted the cache from the browsers. In ...
4
votes
1
answer
3k
views
How to cache api and assets in service worker in vue cli3
import { register } from 'register-service-worker'
import pwa from '@vue/cli-plugin-pwa'
if (process.env.NODE_ENV === 'development') {
// if (process.env.NODE_ENV === 'production') {
console.log(pwa)
...
49
votes
2
answers
29k
views
Vue Cli 3 how to use the official PWA plugin ( Service Worker )
on my first vue project attempting to wrestle with the official PWA plugin ( https://github.com/yyx990803/register-service-worker ).
My specific problem: capturing the registered service worker and ...
9
votes
1
answer
3k
views
Vue Cli 3 and Firebase service worker registration
I've used Vue-cli 3 to create a Vue app and I've been trying to incorporate FCM into it. However, I've been working on it for two days and I still cannot get it working.
First, here's my
...
1
vote
0
answers
851
views
Workbox webpack plugin doesn't generate serviceWorker
I am in development env.
I installed cli-plugin-pwa that use workbox-webpack-plugin.
My vue.config.js file is very simple :
// ...
// 'GenerateSW' is the default workboxPluginMode
pwa: {
...