I have rev manifest generated for my css and js file and also for images which looks like this:
Now I need helper which check if this json exist and replace regular asseth path or use non-hashed version.
I want used it for
js() functions and also for
new Asset() and
rev('images/logo.svg') which returns
images/logo-1fd5c391ed.svg if manifest exist or only
Thanks for any suggestion…