mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-08 09:24: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'));
|
console.log(chalk.cyan('Obfuscating JavaScript...\n'));
|
||||||
bundleFiles.forEach((file) => {
|
bundleFiles.forEach((file) => {
|
||||||
|
const outputPath = file.replace(new RegExp(`^${srcDir}`), publicDir);
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
file,
|
outputPath,
|
||||||
javascriptObfuscator
|
javascriptObfuscator
|
||||||
.obfuscate(readFileSync(file, 'utf-8'), {
|
.obfuscate(readFileSync(outputPath, 'utf-8'), {
|
||||||
optionsPreset: 'high-obfuscation',
|
optionsPreset: 'high-obfuscation',
|
||||||
target: 'browser',
|
target: 'browser',
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user