'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
&
>> *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
*-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
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
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
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
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
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
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