Replies: 1 comment 1 reply
-
Firstly, congratulations with a super nice project! Indeed, stale CSS rules can make a whole project feel overwhelming to clean up in. Responding to your Fediverse post: Yes indeed it could be straightforward to create a pre-commit hook from CLI... where straightforward is subject to subjectivity :) I think pre-commit's prime feature is that it accepts a list of files that have been changed, so it's possible for linters and other tools to minimize their work load. Say:
The idea here would be that there was a hook for each css compiler that refreshcss knows how to run. I suppose compiling the CSS comes with some additonal Python dependency. The Another option is to leave it to the user to install the compilation dependencies and configure the correct entry. It's not so self-contained, though. Would need to be reproduced both locally and in CI. I think having a CLI to begin with is a natural starting point, then maybe someone that really likes this would add a pre-commit hook configuration ❤️ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
purgecss
Django
ordjango-compressor
(but, should support DLT/Jinja with a flag?)Beta Was this translation helpful? Give feedback.
All reactions