From d5793b5b7ee8d79a1943d60dfdea51793bb198e7 Mon Sep 17 00:00:00 2001 From: SamTv12345 Date: Wed, 17 Jul 2024 16:05:26 +0200 Subject: [PATCH] Fixed alias --- src/node/hooks/express/specialpages.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index 3a6877228..0c19eebee 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -91,6 +91,9 @@ const convertTypescript = (content: string) => { resolveDir: path.join(settings.root, 'var','js'), loader: 'js' }, + alias:{ + "ep_etherpad-lite": path.join(settings.root, 'src') + }, bundle: true, // Bundle the files together minify: process.env.NODE_ENV === "production", // Minify the output sourcemap: !(process.env.NODE_ENV === "production"), // Generate source maps @@ -208,6 +211,9 @@ const convertTypescriptWatched = (content: string, cb: (output:string, hash: str resolveDir: path.join(settings.root, 'var','js'), loader: 'js' }, + alias:{ + "ep_etherpad-lite": path.join(settings.root, 'src') + }, bundle: true, // Bundle the files together minify: process.env.NODE_ENV === "production", // Minify the output sourcemap: !(process.env.NODE_ENV === "production"), // Generate source maps