fix: minification regression

isekai-main
Barış Soner Uşaklı 3 years ago
parent 463b2076a6
commit 998b9e7918

@ -327,8 +327,10 @@ JS.buildBundle = async function (target, fork) {
await requirejsOptimize(target); await requirejsOptimize(target);
const files = await getBundleScriptList(target); const files = await getBundleScriptList(target);
const srcPath = path.join(__dirname, `../../build/public/rjs-bundle-${target}.js`);
files.push({ 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'; const minify = process.env.NODE_ENV !== 'development';

Loading…
Cancel
Save