I'm having a problem with building file paths in index.html when I run the build command. My app is using vue3 + vite
An issue I'm facing is that the index.html file references to js and css files this way:
<script type="module" crossorigin src="/assets/index.js"></script>
<link rel="modulepreload" href="/assets/vendor.js">
<link rel="stylesheet" href="/assets/style.css">
But I need it to do it this way because my app is having problems with cache in browser:
<script type="module" crossorigin src="/assets/index.js?v=1.1.0"></script>
<link rel="modulepreload" href="/assets/vendor.js?v=1.1.0">
<link rel="stylesheet" href="/assets/style.css?v=1.1.0">
I know that using this option solves the cache problem. But it does change the filename every time I build my app. Since my case needed to keep the filename static to be able to pass through the firewall, something like that
What would I need to add/change in order to get the path structure I want?
Thanks in advance.