question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does minification work with django-distill?

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
meebcommented, Jul 10, 2022

No problem, glad you got it working.

1reaction
meebcommented, Jul 10, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found