Closed vinodpandey closed 8 years ago
Why don't you just use django-compressor? Or django-pipeline?
I don't work on django-static any more. If you want to you use the code you wrote, I suggest you use your own fork. Sorry. But django-pipeline is so much better.
I tried both django-compressor and django-pipeline and didn't like them. Found it weird that we have to define all files in settings.py for pipeline to compress. That was deal breaker. Also django-compressor didn't work well for my requirement. django-static meets most of my requirement and the only part missing for me was to create static compressed files similar to manage.py collectstatic which I would than upload to S3.
Thanks for creating django-static :+1: .
The concatenation and compressing process can also be jump started outside of the request/response cycle by using the Django management command manage.py compress and the file names are stored in manifest.json. This json file and related css/javascript files can then be deployed manually to production. The code is copied from django-compressor (https://github.com/django-compressor/django-compressor). Updated license file to reflect the same.