)]}'
{
  "commit": "07dd8b028e69578ec369ba80e5c15ea39afc7da2",
  "tree": "8f076b2c1fd637404657057975ea3d0a59d978f0",
  "parents": [
    "f13bf48eee5dd8c1518a4df83c29aba9826e118c"
  ],
  "author": {
    "name": "Kevin Moore",
    "email": "kevmoo@users.noreply.github.com",
    "time": "Fri Sep 18 01:51:07 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Sep 18 01:51:07 2026 +0000"
  },
  "message": "feat(web): support --web-content-hash for physical static assets (#191919)\n\nSupports content-hashing physical static assets under `assets/` and\nrewrites target path mappings in `AssetManifest.bin`,\n`AssetManifest.bin.json`, `AssetManifest.json`, and `FontManifest.json`\nwhen building Flutter Web with `--web-content-hash`.\n\n### What this PR accomplishes\n* Computes SHA-256 (first 8 hex characters) for project static assets\nunder `build/web/assets/`.\n* Renames physical assets on disk prior to file extension\n(`image.\u003chash\u003e.png`).\n* Rewrites `AssetManifest.bin`, `AssetManifest.bin.json`, and\n`AssetManifest.json` variant maps to point to hashed filenames so\n`AssetImage` transparently resolves content-hashed assets at runtime.\n* Rewrites font asset target paths in `FontManifest.json`.\n* Excludes special files (`AssetManifest.*`, `FontManifest.json`,\n`NOTICES`, `NOTICES.Z`) and all shaders (`*.frag` and `shaders/`) from\ncontent-hashing to prevent runtime discovery and CanvasKit\n`FragmentProgram` 404s.\n* Cleans `build/web/assets/` on incremental rebuilds to prevent stale\nasset accumulation, and updates `flutter_assets.d` for hermetic build\ntracking.\n* Follows `dart-use-path-package` conventions (`fileSystem.path` context\ndecomposition and `p.posix.joinAll` manifest bridging).\n\n\u003e [!NOTE]\n\u003e Direct runtime resolution for arbitrary `rootBundle.load(...)` and\n`rootBundle.loadString(...)` calls (which pass raw keys to the engine\nchannel without consulting `AssetManifest`) will be completed in a\ncompanion framework task.\n\nPart of #191915\nPart of #149031",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6c91245289bd24943743dd0a070cd25f98b2f9f6",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/build_system/targets/web.dart",
      "new_id": "a474920e574f6de272f4ba0b45e2110f37a81445",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/build_system/targets/web.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4104d9dbd7cbc7662299e177911e35b7905825a3",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/web/content_hash.dart"
    },
    {
      "type": "modify",
      "old_id": "9c2c27456f67d8b8d20e8322c25d958720a15bf0",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart",
      "new_id": "0d8acdd25d8998fe8333222949e8652fd6b18181",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart"
    }
  ]
}
