42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
const allObfuscatorConfig = {
|
|
excludes: [],
|
|
enable: true,
|
|
log: true,
|
|
autoExcludeNodeModules: true,
|
|
// autoExcludeNodeModules: { enable: true, manualChunks: ['vue'] }
|
|
threadPool: true,
|
|
// threadPool: { enable: true, size: 4 }
|
|
options: {
|
|
compact: true,
|
|
controlFlowFlattening: true,
|
|
controlFlowFlatteningThreshold: 1,
|
|
deadCodeInjection: false,
|
|
debugProtection: false,
|
|
debugProtectionInterval: 0,
|
|
disableConsoleOutput: false,
|
|
identifierNamesGenerator: 'hexadecimal',
|
|
log: false,
|
|
numbersToExpressions: false,
|
|
renameGlobals: false,
|
|
selfDefending: true,
|
|
simplify: true,
|
|
splitStrings: false,
|
|
ignoreImports: true,
|
|
stringArray: true,
|
|
stringArrayCallsTransform: true,
|
|
stringArrayCallsTransformThreshold: 0.5,
|
|
stringArrayEncoding: [],
|
|
stringArrayIndexShift: true,
|
|
stringArrayRotate: true,
|
|
stringArrayShuffle: true,
|
|
stringArrayWrappersCount: 1,
|
|
stringArrayWrappersChainedCalls: true,
|
|
stringArrayWrappersParametersMaxCount: 2,
|
|
stringArrayWrappersType: 'variable',
|
|
stringArrayThreshold: 0.75,
|
|
unicodeEscapeSequence: false,
|
|
}
|
|
};
|
|
|
|
export default allObfuscatorConfig;
|