Skip to content

Node.js based forum software built for the modern web

fix: minification regression

Barış Soner Uşaklı998b9e7918d6
diff --git a/src/meta/js.js b/src/meta/js.js
index 05ecd482f3..63a7d84126 100644
--- a/src/meta/js.js
+++ b/src/meta/js.js
@@ -327,8 +327,10 @@ JS.buildBundle = async function (target, fork) {
await requirejsOptimize(target);
const files = await getBundleScriptList(target);
+ const srcPath = path.join(__dirname, `../../build/public/rjs-bundle-${target}.js`);
files.push({
- srcPath: path.join(__dirname, `../../build/public/rjs-bundle-${target}.js`),
+ srcPath: srcPath,
+ filename: path.relative(basePath, srcPath).replace(/\\/g, '/'),
});
const minify = process.env.NODE_ENV !== 'development';