hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
351 stars 38 forks source link

Use lessc dependencies to trigger re-renders #208

Open bhagany opened 6 years ago

bhagany commented 6 years ago

It turns out that lessc has a relatively easy way of tracking dependencies for the files that it compiles, and we can leverage this to know when to recompile at a granular level. There are no user-facing api changes.

arichiardi commented 6 years ago

@bhagany first of all thanks as usual for working on this.

The patch achieves reloading of imported files, like .variables and .overrides for Semantic UI. There is a problem though: at the end of the pipeline I see the following and the main css file does not seem to be updated:

Process completed successfully.
[lessc] - copied unchanged file public/css/blog.css
Sifting output files...
arichiardi commented 6 years ago

This still has the problem described, seems like a simple fix, will do my best to check that

arichiardi commented 5 years ago

Will have to check this, after one year I forgot about it and of course it is a very nice to have 😀