This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello,
My goal is to make browser cache the files and not to make HTTP requests
I am trying to use something like path/to/styles.v1.css
instead of path/to/styles.css
What is the best way do to it?
Ideally should be done via webpack script, so that npm run prod
would increase the file version.
Thank you!
vasdor125884 said: What is the best way do to it? Ideally should be done via webpack script, so that
npm run prod
would increase the file version.
There are many ways to do it, one idea involves Theme fields and autoincrementing Gulp task - see if you can convert it to NPM script:
https://github.com/Eoler/oc-f5fresh-theme/commit/617e51d7509424b75fd5e7deea730cead24a1b94
1-2 of 2