Open amitness opened 8 years ago
We can also open a PR to Wazimap. :)
Why not use node with gulp for it?
@barbier
The CSS and JavaScript are in an upstream Django project, Wazimap. Wazimap (or Django) may have a way to minify resources. If so, I think we should use that. If Wazimap does not have the ability to minify, we might consider a PR to Wazimap to add that ability.
I would suggest that this should be configurable by environment because minified JS is harder to debug than un-minified JS. In fact, we found the cause of a bug in Wazimap because we were able to debug using un-minified JS. I think we should have un-minified JS in non-production environments.
Possible solution: Django Compressor suggested on the Python Users Group Nepal.
The CSS and JS of the site can be minified to speed up loading time. We'll need to research how it is done in Django.