Enable hashing for static-served assets

Hello,

I am wondering what is the proposed approach to add filename hashing for static assets copied using the asset() function. Currently when I build the project, only compiled assets get the hashes, but static assets don’t.

What is the right way to make it work?

Thank you in advance!