-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service Worker Not being minified #62
Comments
@logotip4ik I'll review latest changes in Nuxt, it is weird, mode should be production and |
anyway, your sw has errors: missing |
I thought that they would be somehow inlined at the build time 😅. I took this example from vite-pwa website (https://vite-pwa-org.netlify.app/workbox/inject-manifest.html#network-first-strategy). Should i open pr to fix this ? |
@logotip4ik found the problem:
You can change the format using You can check it here in this SB fork : https://stackblitz.com/edit/nuxt-starter-al3pyt?file=nuxt.config.ts. |
Can't reproduce with |
https://stackblitz.com/edit/nuxt-starter-l1gvkq?file=nuxt.config.ts
Reproduction
yarn && yarn run build
code .output/public/sw.js
stackblitz wont show and update.output
directory? You need manually open it after each buildInfo
strategies: 'injectManifest'
will inlineworkbox
utils but then it won't minify the service worker itself. WithgenerateSW
strategy, vite will minify bothsw.js
andworkbox-*.js
filesThe text was updated successfully, but these errors were encountered: