You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a good point, would you mind to create a PR for it? We use https://www.npmjs.com/package/rollup-plugin-workbox underhood and I guess there should be an option for that (we can make it default to minified and configurable for users to opt-out). Thanks
It turns out generateSW() already minifies output, if mode options is set to "production". The problem is when building, tsupreplaces process.env variables, so mode option always set to "development". Quick fix for this is to pass mode: process.env.NODE_ENV via workbox option to VitePWA. Ideally though, tsup should not touch process.env.NODE_ENV piece.
Service worker and Workbox javascript files are not minified. Is there any option I should add or is it missing this feature?
The text was updated successfully, but these errors were encountered: