I have small Vue app without Node.js and I import several component files.
I need to be sure that users will always get newest version of certain files/components, because I do some updates continuously.
My code is like this:
import InputComponent from './folder/editor-input.js';
import ProductComponent from './folder/editor-product.js';
..and so on
inside
<script type="module"></script>
I have tried two following ways and neither one worked.
const dateNow = Date.now();
import InputComponent from './moduly/editor-input.js?v='+dateNow;
and
const dateNow = Date.now();
import InputComponent from './moduly/editor-input.js?v={$dateNow}';
I want to have result like this:
import InputComponent from './folder/editor-input.js?v=1691592140153';
Is it even possible?