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/el/docs/fuwari/advanced-customization/ai-guide/07-custom-plugins/