I kinda like the idea of being able to run collectstatic and not have to worry about setting up a full on frontend workflow for pretty much just minification. It is a great default to have when this is all you need.

That said, I’d be more interested in seeing something like an official or a django-blessed unofficial default option similar to the sprokects-rails gem for ruby. Allowing for a much more flexible and extensive frontend pipeline without having to rely on an external task runner.

On 22 Dec 2020, at 7:24, Diptesh Choudhuri wrote:

The default files copied to STATIC_ROOT when you run python manage.py
collectstatic should have two versions- file.js and file.min.js (similarly for css files). As far as I can see, this happens only for the preinstalled
apps (like admin/actions.min.js) but not for user installed apps.
Serbing minified static files is important for all production environments for pretty much everyone who uses vanilla django. Though there are packages
out there to do this, I feel it is important enough and has enough use
cases to be added to the django core.

I can start working on this if it is accepted.
Let me know what you think!

Best
Diptesh Choudhuri

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5bcb1522-3486-452e-b061-2cce2bb6d2c9n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/276A5D36-D8EE-41A7-9C64-16A3B167FD7B%40gmail.com.

Reply via email to