chore(storefront): remove .webmcp bridge from production builds#290
What happened
Every production page loads /.webmcp/bridge.js (14KB, unminified, flagged by Lighthouse's unminified-javascript audit) as a head module:
html
| 1 | <script type="module" src="https://amerikvitamin.mn/.webmcp/bridge.js" data-packs="c2pa,mcp-server-client"> |
This is agent tooling shipping to every shopper. It costs a request, 14KB, and unminified parse/eval time on the critical path.
Plan
Gate the bridge injection to dev/preview only.
Acceptance criteria
- No
.webmcpreferences in production HTML - Bridge still available in local dev