mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-28 18:19:06 +00:00
13 lines
307 B
TypeScript
13 lines
307 B
TypeScript
/**
|
|
* @name ConfigRestartPlugin
|
|
* @description 监听配置文件修改自动重启Vite
|
|
*/
|
|
import ViteRestart from 'vite-plugin-restart'
|
|
export const ConfigRestartPlugin = () => {
|
|
return ViteRestart({
|
|
restart: [
|
|
'*.config.[jt]s',
|
|
'**/config/*.[jt]s'
|
|
]
|
|
})
|
|
} |