Answer the question
In order to leave comments, you need to log in
Obfuscation (obfuscation) of the code. What to do?
I am compiling a project, and it became necessary to hide the code from prying eyes. Familiar with the automated build tool: make and grunt. Lately I've been leaning towards the latter. I figured out how to minify and concatenate, but I can't figure out how to obfuscate. I guess that there is a special module, but his search was not married. Need mentoring advice from a bosom front-end developer who has worked on at least one major project
Answer the question
In order to leave comments, you need to log in
Grunt has an uglify option
// Project configuration.
grunt.initConfig({
min: {
dist: {
src: ['dist/built.js'],
dest: 'dist/built.min.js'
}
},
uglify: {
mangle: {toplevel: true},
squeeze: {dead_code: false},
codegen: {quote_keys: true}
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question