3

I want to obfuscate javascript files in my worklight project. is it a good practice to obfuscate the javascript files in a worklight application?. is there a way to do obfuscation using Gulp in worklight application?.

Idan Adar
  • 44,156
  • 13
  • 50
  • 89

1 Answers1

3

If you want to obfuscate your application's JavaScript code - go ahead and obfuscate.

The following blog post details obfuscation instructions in Worklight-based applications (this includes MobileFirst Platform): Obfuscating JavaScript code in Worklight applications

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
  • Great to hear. Please mark as resolved when you can. – Idan Adar Jan 30 '15 at 10:03
  • 4
    Great resource, but actually YUI Compressor, closure and uglifyjs are not "obfuscators". They are minifiers and optimizers. If you want a good obfuscator, I recommend JScrambler. You can find a gulp API client here: https://github.com/jscrambler/gulp-jscrambler – Alex Jan 31 '15 at 11:43
  • Yes, I believe a cautionary note is mentioned in the blog post. – Idan Adar Jan 31 '15 at 11:45