Shouldn’t a rebuild be triggered if a file being used with readFile
is changed and the change is detected?
What I was trying to do:
I was using resources.FromString
to read static/custom.css
and fingerprint it for cache busting. However, even when the CSS file was changed, the pages weren’t rebuilt and the changed did not reflect in the browser.
I am aware that this is not the ideal way to go about it and I have since patched the theme to treat the custom CSS file as a resource under assets/
.
However, I wanted to know if this is the desired readFile
behaviour. Of course changes in the static
directory shouldn’t trigger a rebuild, but could there be an exception for paths used with readFile
?