Open Karmalakas opened 2 years ago
What am I missing? I have this config under module.rules:
module.rules
{ test: /\.js$/, exclude: /node_modules/, enforce: 'post', use: { loader: WebpackObfuscator.loader, options: { debugProtection: true, disableConsoleOutput: true, rotateStringArray: true, selfDefending: true, } } }
And it doesn't obfuscate. But if I use it as a plugin:
new WebpackObfuscator({ debugProtection: true, disableConsoleOutput: true, rotateStringArray: true, selfDefending: true, }),
Then it works just fine 🤔
"javascript-obfuscator": "^3.0.0", "webpack": "^5.65.0", "webpack-obfuscator": "^3.5.0"
Same with:
"javascript-obfuscator": "^4.0.0", "webpack": "^5.73.0", "webpack-obfuscator": "^3.5.1"
In my case, none of these work. Neither loader, nor plugin.
What am I missing? I have this config under
module.rules
:And it doesn't obfuscate. But if I use it as a plugin:
Then it works just fine 🤔