diff --git a/watcher.js b/watcher.js index b772018..00a858e 100644 --- a/watcher.js +++ b/watcher.js @@ -4,7 +4,7 @@ let config = (await import('./config.js')).default; watchFile('./config.js', async ()=>{ // Dynamically reload config and watch it for changes. try { - config = (await import('./config.js')).default; + config = (await import('./config.js?refresh='+Date.now())).default; console.log('Reloaded config file.') } catch(e) { console.error(e);