<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>钩子 on PlumePHP</title><link>https://plumephp.com/tags/%E9%92%A9%E5%AD%90/</link><description>Recent content in 钩子 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 27 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E9%92%A9%E5%AD%90/index.xml" rel="self" type="application/rss+xml"/><item><title>Vite 插件开发实战：钩子体系、transform 与虚拟模块</title><link>https://plumephp.com/vite-plugin-development/</link><pubDate>Sun, 27 Sep 2026 10:00:00 +0800</pubDate><guid>https://plumephp.com/vite-plugin-development/</guid><description>&lt;h2 id="引言"&gt;引言&lt;/h2&gt;
&lt;p&gt;当 Vite 的配置选项无法满足团队的自定义构建需求时，&lt;strong&gt;插件（Plugin）&lt;/strong&gt; 是唯一的正解。无论是注入构建信息、自动生成路由、解析自定义文件格式，还是拦截与改写模块源码，插件的钩子体系都提供了标准化的接入点。理解插件机制，是「会用 Vite」到「掌控 Vite」的分水岭。&lt;/p&gt;</description></item></channel></rss>