isle.pizza/workbox-config.cjs
Christian Semmler f482898a72 Replace Range request asset loading with packed binary bundle
Extract save editor assets (animations, sounds, textures, bitmaps) into
a single save-editor.bin file at build time instead of fetching byte
ranges from ~550MB SI files at runtime. The bundle packs an embedded
JSON index and all fragment data into one file (~756KB), eliminating
Range request complexity and enabling proper Workbox precaching.
2026-02-13 16:30:03 -08:00

10 lines
250 B
JavaScript

module.exports = {
globDirectory: 'dist/',
globPatterns: [
'**/*.{js,css,html,webp,wasm,pdf,mp3,gif,png,svg,json,bin}'
],
swSrc: 'src-sw/sw.js',
swDest: 'dist/sw.js',
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024,
};