Optimize WASM handling and integrate service worker caching.

Removed unused pointer events in BevyScene, updated Vite config with Workbox for service worker caching, and adjusted file paths in generate-bevy-bundle.js. Added WASM size optimization to ensure smaller and efficient builds, skipping optimization for files below 30MB.
This commit is contained in:
geoffsee
2025-07-02 20:25:58 -04:00
parent 195d071c3c
commit 5f6cb3d6c7
4 changed files with 33 additions and 4 deletions

View File

@@ -32,7 +32,6 @@ const BevySceneInner: React.FC<BevySceneProps> = ({
position: 'absolute' as const,
inset: 0,
zIndex: 0,
pointerEvents: 'none' as const,
opacity: visible ? Math.min(Math.max(intensity, 0), 1) : 0,
filter: glow ? 'blur(1px)' : 'none',
transition: `opacity ${speed}s ease-in-out`,