text: "use strict";(globalThis["webpackChunkquasar_dev"]=globalThis["webpackChunkquasar_dev"]||[]).push([[63157],{63157:(e,t,o)=>{o.r(t),o.d(t,{default:()=>w});var a=o(83673);const n=(0,a._)("p",null,[(0,a._)("strong",null,"When in develop mode"),(0,a.Uk)(" (not production), having a Service Worker installed and running will mess with the HMR (Hot Module Reload). However, the browser can be configured to bypass for network instead of using the Service Worker’s cache.")],-1),r=(0,a._)("p",null,[(0,a._)("img",{src:"https://cdn.quasar.dev/img/pwa-hmr.png",alt:"",class:"doc-img"})],-1),i=(0,a._)("p",null,[(0,a.Uk)("When your development activity does not include configuring the Service Worker (like when editing the “/src-pwa/register-service-worker.js” file), then you can safely trigger the "),(0,a._)("code",{class:"doc-token"},"$ quasar dev -m spa"),(0,a.Uk)(" (instead of "),(0,a._)("code",{class:"doc-token"},"$ quasar dev -m pwa"),(0,a.Uk)(") command to avoid the extra hassle of paying attention to the effects of the Service Worker – which sometimes may get in the way.")],-1),s=(0,a.Uk)("One more reason to dev in SPA mode (as described above) when not dealing directly with the development of the service worker is that you may bump into the following warning (which can be ignored and is described fully "),l=(0,a.Uk)("here"),c=(0,a.Uk)("):"),d=(0,a._)("blockquote",{class:"doc-note"},[(0,a._)("p",null,"GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.")],-1);function h(e,t,o,h,u,m){const g=(0,a.up)("doc-link"),p=(0,a.up)("doc-page");return(0,a.wg)(),(0,a.j4)(p,{"meta-title":h.metaTitle,title:"Hot Module Reload for PWA","meta-desc":h.metaDesc},{default:(0,a.w5)((()=>[n,r,i,(0,a._)("p",null,[s,(0,a.Wm)(g,{to:"https://github.com/GoogleChrome/workbox/issues/1790"},{default:(0,a.w5)((()=>[l])),_:1}),c]),d])),_:1},8,["meta-title","meta-desc"])}var u=o(17536);const m={name:"DocMarkdownPage",setup(){return{metaTitle:"Hot Module Reload for PWA",metaDesc:"How to manage HMR (Hot Module Reload) with Quasar PWA.",copyHeading:u.Et}}};var g=o(74260);const p=(0,g.Z)(m,[["render",h]]),w=p}}]);