Does minification work with django-distill?
See original GitHub issueI have essentially copied your example site and started tweaking it (demo | repo),
I have django-htmlmin installed and it works just fine until I try to distill the site, then it is just ignored, and nothing is minified. I’ve tried different ideas from their docs to make it work for the distilled site as well, but I just cannot seem to figure anything out.
I’m just wondering if it is incompatible with django-distill
, or if not, how would I make it work with the generated static site?
After I got this working, I was going to try using django-compressor for CSS, SASS and JS as well, but maybe you already know if this is is or is not compatible with django-distill
too?
Thanks!
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
meeb/django-distill: Minimal configuration static site ... - GitHub
django-distill is a minimal configuration static site generator and publisher for Django. Most Django versions are supported, however up to date versions ...
Read more >Django Compressor Tutorial - raturi.in
Django Compressor is a python package for the Django web framework to compress and minify CSS and JS files using {% load compress...
Read more >django-distill - Jamstack
django-distill is a simple to implement static site generator for Django. It is fully compatible with all Django projects and works with existing...
Read more >Minify All Static Files Without Changing Their Names Django ...
I'm using Django Pipeline as a drop in minifier for my static files. What I would like to happen is that when I...
Read more >django-minify-html - PyPI
This is recommended because HTML minification can reveal bugs in your templates, so it's best to always work with your HTML as it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No problem, glad you got it working.
Neither of your last screenshots have minification enabled, so that’s showing the middleware isn’t loaded properly. I’ve just pushed a minor tweak that might fix it. Please update to 2.10.1 from PyPi and try again.