mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-03-01 06:17:38 +00:00
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.
10 lines
250 B
JavaScript
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,
|
|
};
|