Jump to content

Cache-busting module


Tyssen
 Share

Recommended Posts

Does anything like https://github.com/clubstudioltd/craft-asset-rev exist for PW?

I create a manifest.json file using my build process, which contains code something like

{"css/app.css":"css/app-65445d4baa.css","js/app.js":"js/app-889f5dca36.js"}

and then in the template I'd have

{{ rev('css/app.css') }}

which replaces that with whatever is in the manifest file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...