mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: minification regression
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user