What is the most appropriate way to obfuscate code created using JS ES6 for use inside the electronjs?
What is the most appropriate way to obfuscate code created using JS ES6 for use inside the electronjs?
I do not dominate this tool (electronjs), but for general use, independent of Electron I believe that what you are looking for is this:
To install (globally):
npm install uglify-js -g
The usage command would be this:
uglifyjs --compress --mangle arquivo-original.js
Adding several:
uglifyjs src/arquivo-original1.js \
src/arquivo-original2.js \
-o dist/projeto.min.js \
--compress --mangle