94 단어
1 분
7. 自定义构建插件 (Custom Plugins)
이 기사는 현재 언어로 번역되지 않았습니다. 기본 언어로 표시됩니다.
本文档指明了自定义 Vite/Astro 构建插件的存放目录及使用逻辑,以供 AI 在修改时参考。
# AI Collaboration Reference: Custom Build Plugins
## Context & Rules
- **Plugin System**: To keep `astro.config.mjs` clean, custom Vite or Astro build-time plugins (such as the automatic `i18nKeyPrefixPlugin` for modular partials) are stored in the `src/astro-plugins/` directory.- **Rule**: If you need to debug or extend compile-time transformations, look inside `src/astro-plugins/`. Do not write large inline plugin logic directly inside `astro.config.mjs`.7. 自定义构建插件 (Custom Plugins)
https://blog.aquamarinez.com/ko/docs/fuwari/advanced-customization/ai-guide/07-custom-plugins/