Search code examples
javascriptdjangominifyscramble

Simple way to minify/scramble Django js


There is a simple way to minify and/or obfuscate JS that it's present in my django templates?

I'm also using template variables and templates tag into js, so, the standard uglifyjs or similar are not fitting my original request.

Anything to do?


Solution

  • I found django compressor very easy to use. In thirty minutes I'm done https://django-compressor.readthedocs.io/en/stable/usage/ Maybe this could help for template tags and variables Django-compressor and template tags in Django