I am serving CSS and javascripts in my django website, so how to obfuscate and minimize them. 1 solution is: To serve already obfuscated and minimized js and css.
can I have a flag set in settings.py that to switch on and off the obfuscation?
So, that I can develop on normal human readable code and serve the obfuscated css and js.
What is the standard method of achieving this?
I would recommend django-compressor. It supports running your JS/CSS through a number of different compression algorithms (JSMin, Slim It, YUI, Closure Compiler).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With