egg-watcher-vagrant
v1.0.1
Published
file watcher plugin for egg on network file systems or other virtualization software
Downloads
7
Maintainers
Readme
egg-watcher-vagrant
File watcher plugin for egg watcher when in network file systems or other virtualization software
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;
Usage
install
npm install --save egg-watcher-vagrantenable it in config
in ${app_root}/config/plugin.js file, add the following config
module.exports = {
'watcher-vagrant': {
enable: true,
package: 'egg-watcher-vagrant',
}
};if you just want use it in local evniroment, you just add this config to ${app_root}/config/plugin.local.js file
Options
This plugin used chokidar and you can pass chokidar options as following, this plugin default open the usePolling and alwaysStat options.
module.exports = {
'watcher-vagrant': {
enable: true,
package: 'egg-watcher-vagrant',
vagrant: {
usePolling: true,
alwaysStat: true,
},
},
};