title: How can I obfuscate AngularJS codes?
body: <p>How can I obfuscate AngularJS codes? 
  We have tried gulp-obfuscate, but it does not work. Anyone can help us? Thanks a lot!</p>
  
  <p>We have done like this </p>
  
  <p><code>someModule.controller('MyController',[ '$scope', function($scope) {",</code></p>
  
  <p>but after success to get the obfuscated codes like this </p>
  
  <pre><code>function H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅4() {
  var H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅1, H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅2, H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅3;
  ...
  H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅3 = H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅1 + H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅2;
  return H͇̬͔̳̖̅̒ͥͧẸ̖͇͈͍̱̭̌͂͆͊_C͈OM̱̈́͛̈ͩ͐͊ͦEͨ̓̐S̬̘͍͕͔͊̆̑̈́̅3;
  </code></pre>
  
  <p>}</p>
  
  <p>all angularjs codes in app-52143d391a.js not worked, it return </p>
  
  <pre><code>Uncaught Error: [$injector:nomod] Module 'client' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
  </code></pre>
  
  <p>After run</p>
  
  <pre><code>gulp.task('obfuscate', function () {
  return gulp.src('../webapp/scripts/app-*.js')
      .pipe(ngAnnotate())
      .pipe(obfuscate())
      .pipe(gulp.dest('dist'));
  </code></pre>
  
  <p>});</p>
  
  <p>all are ok, and get below codes:</p>
  
  <pre><code>http://pan.baidu.com/s/1ntXuGbB
  </code></pre>
  
  <p>then run with below error:</p>
  
  <pre><code>Uncaught TypeError:  _ 206. _ 252 is not a function(anonymous function) @ app-6c38d9a2fc.js:2
  generated.js:9279Uncaught Error: [$injector:modulerr] Failed to instantiate module client due to:
  Error: [$injector:nomod] Module 'client' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
  http://errors.angularjs.org/1.4.7/$injector/nomod?p0=client
  </code></pre>