|
|
@ -62,7 +62,7 @@ reloadplugin = (event, filename, pluginpath) => { |
|
|
|
console.info(event, filename) |
|
|
|
console.info(event, filename) |
|
|
|
pluginpath = (pluginpath ? pluginpath : './plugins/') + filename |
|
|
|
pluginpath = (pluginpath ? pluginpath : './plugins/') + filename |
|
|
|
const check = Object.keys(cfg.plugins) |
|
|
|
const check = Object.keys(cfg.plugins) |
|
|
|
console.info(`reload file:`, pluginpath) |
|
|
|
console.info(`reload file: ./lib/${pluginpath}`) |
|
|
|
const plugin = require.resolve(pluginpath) |
|
|
|
const plugin = require.resolve(pluginpath) |
|
|
|
if (plugin && require.cache[plugin]) { |
|
|
|
if (plugin && require.cache[plugin]) { |
|
|
|
// console.debug(Object.keys(cfg.plugins))
|
|
|
|
// console.debug(Object.keys(cfg.plugins))
|
|
|
|