Skip to content

Commit

Permalink
混淆??
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjianai committed Jun 15, 2024
1 parent 22f6e8f commit 5e24818
Show file tree
Hide file tree
Showing 4 changed files with 370 additions and 24 deletions.
8 changes: 7 additions & 1 deletion cloudflare/rollup.config.pages.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import obfuscator from 'rollup-plugin-obfuscator';
import compiler from '@ampproject/rollup-plugin-closure-compiler';

// rollup.config.mjs
// ---cut-start---
Expand All @@ -14,6 +15,8 @@ export default {
],
plugins:[
obfuscator({
global:false,
include:["cloudflare/src/OPTIONS.js","cloudflare/src/bingapi.js"],
options: {
// Your javascript-obfuscator options here
// See what's allowed: https://github.com/javascript-obfuscator/javascript-obfuscator
Expand Down Expand Up @@ -42,6 +45,9 @@ export default {
stringArrayThreshold: 0.5,
unicodeEscapeSequence: false
},
})
}),
// compiler({
// compilation_level:"ADVANCED"
// })
]
};
8 changes: 7 additions & 1 deletion cloudflare/rollup.config.workers.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import obfuscator from 'rollup-plugin-obfuscator';
import compiler from '@ampproject/rollup-plugin-closure-compiler';

// rollup.config.mjs
// ---cut-start---
Expand All @@ -14,6 +15,8 @@ export default {
],
plugins:[
obfuscator({
global:false,
include:["cloudflare/src/OPTIONS.js","cloudflare/src/bingapi.js"],
options: {
// Your javascript-obfuscator options here
// See what's allowed: https://github.com/javascript-obfuscator/javascript-obfuscator
Expand Down Expand Up @@ -42,6 +45,9 @@ export default {
stringArrayThreshold: 0.5,
unicodeEscapeSequence: false
},
})
}),
compiler({
compilation_level:"ADVANCED"
})
]
};
Loading

0 comments on commit 5e24818

Please sign in to comment.