xushunfa459 bb8a597e19 update
2022-06-30 19:27:52 +08:00

11 lines
270 B
TypeScript

/**
* @name ConfigRestartPlugin
* @description 监听配置文件修改自动重启Vite
*/
import ViteRestart from 'vite-plugin-restart';
export const ConfigRestartPlugin = () => {
return ViteRestart({
restart: ['*.config.[jt]s', '**/config/*.[jt]s'],
});
};