-1
What is the most appropriate way to obfuscate code created using JS ES6 for use within electronjs?
-1
What is the most appropriate way to obfuscate code created using JS ES6 for use within electronjs?
0
I do not master 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
I have but it.presents some problems with require and const
Browser other questions tagged javascript ecmascript-6
You are not signed in. Login or sign up in order to post.
When you do "deploy" technically it’s 'inaccessible', unless someone reverse engineered it, or I’m mistaken?
– Guilherme Nascimento
Exactly, because if you unzip the . bake all the code will be there, readable. And Uglify can’t work with the ES6 even using the Harmony
– Israel Zebulon
have you tried https://www.npmjs.com/package/enclose? Generates an application from your project, I never really used, I hope it will serve :)
– Guilherme Nascimento