Re: collectstatic command should output minified files

2020-12-22 Thread Adam Johnson
'm saying we do something to make this an easier process. >>> >>> Get Outlook for Android <https://aka.ms/ghei36> >>> >>> -- >>> *From:* django-d...@googlegroups.com on >>> behalf of Dmitriy Sintsov &

Re: collectstatic command should output minified files

2020-12-22 Thread Adam Johnson
>> *From:* django-d...@googlegroups.com on >> behalf of Dmitriy Sintsov >> *Sent:* Tuesday, December 22, 2020 3:59:15 PM >> *To:* django-d...@googlegroups.com >> *Subject:* Re: collectstatic command should output minified files >> >> There is one tro

Re: collectstatic command should output minified files

2020-12-22 Thread Mariusz Felisiak
*-1* Correct. Also having to use third party packages (and even other > languages!) for something so common and so useful feels incorrect somehow. > > Additionally, I also propose that the HTMl files served by wsgi.py are > minified. This will be significantly more difficult to achieve since H

Re: collectstatic command should output minified files

2020-12-22 Thread Diptesh Choudhuri
his an easier process. > > Get Outlook for Android <https://aka.ms/ghei36> > > -- > *From:* django-d...@googlegroups.com on > behalf of Dmitriy Sintsov > *Sent:* Tuesday, December 22, 2020 3:59:15 PM > *To:* django-d...@googlegroups.com

Re: collectstatic command should output minified files

2020-12-22 Thread Arvind Nedumaran
oups.com Subject: Re: collectstatic command should output minified files There is one trouble: Webpack assumes it's own subtree of assets to process, while Django loads assets from packages (Django apps) directories. I still haven't seen a successful setup of webpack which would respect loadi

Re: collectstatic command should output minified files

2020-12-22 Thread Dmitriy Sintsov
There is one trouble: Webpack assumes it's own subtree of assets to process, while Django loads assets from packages (Django apps) directories. I still haven't seen a successful setup of webpack which would respect loading assets from Django packages directories. Another trouble, not everyone wants

Re: collectstatic command should output minified files

2020-12-22 Thread Adam Johnson
django-compressor is also popular: https://pypi.org/project/django-compressor/ IMO we should not include anything in Django since JavaScript is a separate language, and they have much better tools for minification and bundling, and these tools can move faster than and orthogonally to Django. And t

Re: collectstatic command should output minified files

2020-12-22 Thread quest...@gmail.com
There is CSS / Javascript merge and compress package for Python: https://github.com/miracle2k/webassets which supports Django, Flask, Pyramid. See also: https://www.slideshare.net/__amol__/pyconit7-dukpy-webassets-free-yourself-from-nodejs-chains https://pypi.org/project/dukpy/ https://gist.github

Re: collectstatic command should output minified files

2020-12-21 Thread Arvind Nedumaran
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 dj