feat: 🔊 fix path in plugin reload log so that it actually works
This commit is contained in:
parent
135ce6567b
commit
f50e388c39
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user