1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00

Update build.ts

Signed-off-by: zumbiepig <121742281+zumbiepig@users.noreply.github.com>
This commit is contained in:
zumbiepig 2024-09-06 21:05:50 -07:00 committed by GitHub
parent 4125d05420
commit 488edb11f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,7 +76,7 @@ if (!isDev) {
console.log(chalk.cyan('Obfuscating JavaScript...\n')); console.log(chalk.cyan('Obfuscating JavaScript...\n'));
bundleFiles.forEach((file) => { bundleFiles.forEach((file) => {
const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir).replace(/\.js$/, '.js'); const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir).replace(/\.ts$/, '.js');
writeFileSync( writeFileSync(
outputPath, outputPath,
javascriptObfuscator javascriptObfuscator