Individual skill
weapp-tailwindcss-custom-build
将 weapp-tailwindcss 集成到自研构建器或高级流水线,覆盖 `weapp-tailwindcss/core`、generator、Vite/Webpack/Rspack/Rollup/Rolldown/Gulp 生命周期、ModuleGraph、Tailwind Scanner/source candidates、watch/HMR、source map、weapp-style-injector 和分包样式隔离。Use for custom bundlers, Node API, build adapters, asset graphs, loaders, plugins, or subpackage style injection;普通框架与 CLI 配置使用 setup skill。
skills/weapp-tailwindcss-custom-build/SKILL.md
Source commit 30b9e52332aa7f7da1df460bd9f17255988e2037
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,865
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,251 bytesSKILL.mdcore · 3,251 bytesSKILL.mdcore · 3,251 bytesSKILL.mdcore · 3,251 bytesagents/openai.yamlasset · 305 bytesreferences/core-api.mddoc · 5,264 bytesreferences/style-injection.mddoc · 2,425 bytes
Read excerpt
# weapp-tailwindcss custom build
围绕构建图和内存产物接入核心转换,避免用输出目录扫描补偿生命周期设计缺失。
## 工作流
1. 先判断官方 Vite/Webpack/Rspack/Gulp 入口是否已满足需求;普通项目转到 `$weapp-tailwindcss-setup`。
2. 确认调用方拥有的生命周期、模块图、CSS 生成结果、asset API、watch 事件和 source map 能力。
3. 读取 [references/core-api.md](references/core-api.md) 设计 `createCompiler()` 的 root、snapshot、失效和转换时序;仅在兼容旧自动 runtime 流程时使用 `createContext()`。
4. 涉及全局/分包样式注入时再读取 [references/style-injection.md](references/style-injection.md)。
5. 在 `load`、`transform`、loader result、compilation、bundle asset 或 stream/Vinyl 对象中维护源码和产物关系。
6. watch 中把精确 dependency/module ID 交给 `invalidate()`,只重新生成返回的 root,再用新 snapshot 转换实际可达的模板和 JavaScript。
7. 让初始扫描、transform 与 HMR 共用 Scanner 的文件范围和显式外部 source,不另建宽泛 glob。
8. 通过 bundler API 写回产物和 source map,不直接修改输出目录。