Skip to content

Commit 61b9a7e

Browse files
authored
fix: make the Vite config respect PWA offline property (#13053)
1 parent 1a85975 commit 61b9a7e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎flow-server/src/main/resources/vite.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export const vaadinConfig: UserConfigFn = (env) => {
189189
},
190190
plugins: [
191191
!devMode && brotli(),
192-
settings.pwaEnabled && transpileSWPlugin(),
193-
settings.pwaEnabled && injectManifestToSWPlugin(),
192+
settings.offlineEnabled && transpileSWPlugin(),
193+
settings.offlineEnabled && injectManifestToSWPlugin(),
194194
{
195195
name: 'vaadin:custom-theme',
196196
config() {

‎flow-tests/test-frontend/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<module>vite-context-path/pom-production.xml</module>
3636
<module>vite-context-path</module>
3737
<module>vite-pwa-disabled-offline</module>
38+
<module>vite-pwa-disabled-offline/pom-production.xml</module>
3839
<module>vite-pwa-production</module>
3940
<module>vite-pwa-production-custom-offline-path</module>
4041
<!-- npm and pnpm dev mode and prod mode -->

0 commit comments

Comments
 (0)