@yuanjianming/unplugin-file-watcher
v1.0.0
Published
```bash npm add @yuanjianming/unplugin-file-watcher ```
Downloads
4
Maintainers
Readme
安装
npm add @yuanjianming/unplugin-file-watcher
使用
import { defineConfig } from 'vite'
import { vitePlugin } from '@yuanjianming/unplugin-file-watcher'
export default defineConfig({
//....
plugins: [vitePlugin()],
})
选项
| 参数 | 类型 | 默认 | 描述 | | ---- | ---- | ---- | ---- | | watchFiles | string[] | [] | 监听文件的绝对路径
思考
- webpack 如何添加文件,监听文件修改,重新启动
- nodemon
- entry 添加对应的依赖关系?
- webpack devSever wathchFile?