mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
import fs and watchFile in one line.
This commit is contained in:
parent
1d799477fb
commit
f3454f2014
1 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import fs from 'fs/promises';
|
||||
import {watchFile} from 'fs';
|
||||
import {promises as fs, watchFile} from 'fs';
|
||||
let config = (await import('./config.js')).default;
|
||||
|
||||
watchFile('./config.js', async ()=>{ // Dynamically reload config and watch it for changes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue