Pixi Web WeChat Dual Target
Use this skill when a PixiJS codebase is already maintaining both Web and WeChat mini-game outputs, or when the user explicitly wants to keep Web work from breaking future or current WeChat delivery.
This skill is not a readiness-audit replacement. If the platform boundary is still undefined, load $pixi-mini-game-readiness first or alongside this skill.
1) When to Trigger
Use this skill for:
- continuing Web feature work without breaking WeChat output
- refactoring boot, platform, asset, storage, or lifecycle code in a dual-target repo
- code review where Web-only assumptions may regress mini-game compatibility
- deciding which validation commands and smoke flows are required after a change
2) Boundary Rules and Forbidden Patterns
Keep platform differences inside:
- target entrypoints
platform/wrappers- boot-time lifecycle wiring
- target-specific build config
Treat these as regression risks unless isolated:
- browser globals outside platform modules
- hardcoded asset roots in shared runtime code
- direct storage access outside a storage bridge
- platform-specific branches spread through scenes or systems
- gameplay-critical HTML or CSS layers
3) Development and Refactor Workflow
Classify the change before coding:
- pure shared logic
- shared runtime or scene composition
- platform bridge or lifecycle change
- asset, font, text-rendering, or packaging change
Then:
- keep shared logic platform-neutral
- keep WeChat-specific fixes inside platform or build layers
- satisfy DevTools- or packager-specific asset path expectations in packaging instead of leaking them into shared runtime code
- prefer packaged glyph or bitmap strategies over runtime CJK font assumptions when mini-game Chinese copy must be reliable
- if the project uses a fixed-copy glyph atlas or similar packaged text asset, make sure normal build commands regenerate it automatically instead of relying on manual operator memory
- add or maintain a regression test that compares current source copy against atlas coverage so new Chinese UI strings fail fast when the packaged text asset is stale
- keep debug and release build paths packaging the same latest text assets; do not let one path silently lag behind the other
- choose validation from
references/gates.md - update durable project rules if the boundary or command matrix changed
4) Review and Regression Output
When reviewing or shipping a change, report:
- which targets were affected
- which commands were run
- which smoke flows were covered
- which target remains unverified
- any dual-target regression risk still open
Resource Map
references/workflow.md: how to move from readiness to daily dual-target developmentreferences/gates.md: command matrix by change typereferences/pitfalls.md: common Web/WeChat dual-target pitfallsreferences/smoke-checklist.md: Web and WeChat smoke expectations