Release 2.1.0
if you use some network file systems or other virtualization software, an use default watcher can’t detected file change. you can use this plugin;
$ npm i egg-watcher-chokidar --save
// {app_root}/config/plugin.js exports.watcherChokidar = { enable: true, package: 'egg-watcher-chokidar', };
if you just want use it in local evniroment, you just add this config to ${app_root}/config/plugin.local.js file
local
${app_root}/config/plugin.local.js
This plugin used chokidar and you can pass chokidar options as following.
chokidar
// {app_root}/config/config.default.js exports.watcherChokidar = { usePolling: true, alwaysStat: true, };
see https://github.com/paulmillr/chokidar#api for more detail.
Please open an issue here.
MIT
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
egg-watcher-chokidar
if you use some network file systems or other virtualization software, an use default watcher can’t detected file change. you can use this plugin;
Install
Usage
if you just want use it in
localevniroment, you just add this config to${app_root}/config/plugin.local.jsfileConfiguration
This plugin used
chokidarand you can passchokidaroptions as following.see https://github.com/paulmillr/chokidar#api for more detail.
Questions & Suggestions
Please open an issue here.
License
MIT