I’m using middleman with sprockets for packaging my js and css files into one file. This works fine. But I was wondering if it is possible to enable the fingerprint feature from sprockets in middleman.
e.g. my file all.js, in which everything gets compiled, gets renamed to all-4e17d33ff76d744900c2691a71ed83e4.js.
It would also be great, if this would be possible with images.
I haven’t found a out of the box solution for this, but I made my own solution. In the
config.rbI’m running theafter_buildhook. Not the best way, but it works:I’m doing the following:
index.htmlwith the new file names