Hi Andrew!
We use the craft.vite.script() function to create tags automagically, but we now walk into something of a feature request.
We're building the assets without hash, but we want to make use of the hash that's in manifest as a cache-busting mechanism.
I know I could place all the script/links tags manually in the layout and paste ?v={{ craft.vite.getCssHash("src/js/app.ts") }} behind every url.
But it would be awesome to have if we can do this as an extra parameter in the .script() function like below and keep the awesomeness that .script() is generating:
Hi Andrew! We use the craft.vite.script() function to create tags automagically, but we now walk into something of a feature request. We're building the assets without hash, but we want to make use of the hash that's in manifest as a cache-busting mechanism.
I know I could place all the script/links tags manually in the layout and paste
?v={{ craft.vite.getCssHash("src/js/app.ts") }}
behind every url. But it would be awesome to have if we can do this as an extra parameter in the .script() function like below and keep the awesomeness that .script() is generating:What do you think of this?
Cheers!