Obfuscate Code JS ES6

-1

What is the most appropriate way to obfuscate code created using JS ES6 for use inside the electronjs?

    
asked by anonymous 29.06.2018 / 03:25

1 answer

0

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
    
29.06.2018 / 03:47