We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce64470 commit d1a1047Copy full SHA for d1a1047
src/plugins/build.ts
@@ -41,12 +41,13 @@ export function BuildPlugin(ctx: PWAPluginContext) {
41
sequential: true,
42
order: ctx.userOptions?.integration?.closeBundleOrder,
43
async handler() {
44
- if (!ctx.viteConfig.build.ssr && !ctx.options.disable) {
+ if (!ctx.viteConfig.build.ssr) {
45
const pwaAssetsGenerator = await ctx.pwaAssetsGenerator
46
if (pwaAssetsGenerator)
47
await pwaAssetsGenerator.generate()
48
49
- await _generateSW(ctx)
+ if (!ctx.options.disable)
50
+ await _generateSW(ctx)
51
}
52
},
53
0 commit comments