K
K
krlljs2014-02-24 15:41:10
Analytics
krlljs, 2014-02-24 15:41:10

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

1 answer(s)
M
Max, 2014-02-24
@krlljs

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}
  }
});

https://github.com/mishoo/UglifyJS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question