diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index 14783a817..5f575d942 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -278,6 +278,10 @@ exports.expressCreateServer = async (hookName: string, args: any, cb: Function) const outdir = path.join(settings.root, 'var','js') + // Create the outdir if it doesn't exist + if (!fs.existsSync(outdir)) { + fs.mkdirSync(outdir); + } let fileNamePad: string let fileNameTimeSlider: string