You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[web] Emit build precache manifest for custom service workers and PWAs (--web-content-hash) #191916
Following the deprecation and removal of default built-in service worker generation (#156910), provide first-party build metadata and loader hooks to enable developers to build custom service workers and offline PWAs with content-hashed assets.
Scope & Requirements
Output a machine-readable Bill of Materials manifest (precache_manifest.json or flutter_assets_manifest.json) in build/web/ listing all output filenames and their content hashes during flutter build web --web-content-hash.
Enable tools like Workbox CLI or custom build scripts to ingest the manifest directly without fragile file-globbing scripts.
Provide clean serviceWorker: { scriptUrl: 'custom_sw.js' } configuration hooks in flutter_bootstrap.js to register and activate custom service workers before the Flutter engine starts.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
fix(web): hide --web-content-hash until content hashing is complete (f…
feat(web): emit precache_manifest.json when --web-content-hash is ena…
feat(web): emit precache_manifest.json when --web-content-hash is ena…
github-actions commentedon Oct 5, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.