asset-rack
asset-rack copied to clipboard
Hash a directory instead of a filename possible?
Is it possible to append the hash to directory instead of the filename?
So if i reference a directory like
assets.tag('/mydir')
I get a hashed version
/mydir-0923489085
So this would mean if i request /mydir-8w7897234/myscript.js
i would get the file /mydir/myscript.js
The reason i am asking is i am trying to integrate this with requirejs, and
i want to set this hashed directory as my baseUrl
on requirejs config.
I don't know if this would work, sorry if this is a dumb question.