mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 08:14:48 +00:00
.
This commit is contained in:
parent
40ae2c8f5f
commit
30484e32c2
5
build.ts
5
build.ts
@ -76,10 +76,11 @@ if (!isDev) {
|
||||
|
||||
console.log(chalk.cyan('Obfuscating JavaScript...\n'));
|
||||
bundleFiles.forEach((file) => {
|
||||
const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir);
|
||||
writeFileSync(
|
||||
file,
|
||||
outputPath,
|
||||
javascriptObfuscator
|
||||
.obfuscate(readFileSync(file, 'utf-8'), {
|
||||
.obfuscate(readFileSync(outputPath, 'utf-8'), {
|
||||
optionsPreset: 'high-obfuscation',
|
||||
target: 'browser',
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user