I am using Laravel Mix to compile my JS and CSS assets. I'm currently using .version()
to achieve this.
The problem is that this produces a file similar to:
/css/app.css?id=03def6a69840076e8f29
That works fine when serving it locally, but if I'm using a CDN to serve this content via an origin pull then the query string doesn't force a new pull of the file. Ideally I'd like the following instead:
/css/03def6a69840076e8f29/app.css
Or:
/css/03def6a69840076e8f29.css
Both of these are different files, so it forces a pull on the CDN.
How can this be achieved with Laravel Mix?