zola
zola copied to clipboard
[Feature Request] Build time hooks?
I'd like to run a command (like for postcss
/parcel-bundler
) every zola build
.
I know this would work if I just put the css build command before the zola build
, but when you do zola serve
, you're also listening to the changes to the directories. In which case multiple builds will be triggerred, and would be good if I'm able to run that command/hook every time that happens.
In which case multiple builds will be triggerred,
Is it that bad? The Zola one should be fast.
Sorry for ambiguous language... By multiple builds will be triggered I meant one build for each change which is what we'd expect.
I want to hook / know when that happens so post that I could do some cleanup or minification/expansion or whatever etc... :sweat_smile:
We should probably find some way to group events rather than reacting to all of them. If we got 10 static assets that changed, we only need to react once, not 10 times.