
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
acetate-asset-revisions
Advanced tools
Use versioned assets with Acetate for cache-busting.
npm install acetate-asset-revisions --save-dev
// in acetate.conf.js
var assetRevisions = require('acetate-asset-revisions')
module.exports = function(acetate){
acetate.use(assetRevisions({
manifest: 'build/assets.json'
}));
};
The manifest option should be the path to a JSON file that maps orginal source names to versioned assets. Most build systems have a way to accomplish this including gulp-rev, grunt-filerev and hashmark for command-line users.
You will then have access to serveral helpers to use in your templates:
{% css 'path/to/css.css'%}{% js 'path/to/js.js'%}{% img 'path/to/img.jpg' 'alt text'%}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- will lookup css/style.css in your manifest and use the versioned URL -->
{% css "css/style.css" %}
</head>
<body>
<!-- will lookup js/main.js in your manifest and use the versioned URL -->
{% js "js/main.js" %}
</body>
</html>
You can pass any additional HTML attributes you want as options.
{% css "css/style.css", media="print" %} - for standard string attributes use a key/value pair{% js "js/main.js", async=true %} - for boolean attributes pass true as a valueYOu can look at how to integrate Acetate and asset versioing into a complete build system in these samples:
This project makes several assumptions about your project structure. Your manifest file must be a simple JSON file that maps original filenames to their versioned file names.
{
"css/style.css": "css/style-098f6bcd.css",
"js/main.js": "js/main-273c2cin.js"
}
The path to this manifest file is assumed to be relative to your Acetate build folder.
Contributions welcome! Please read the contributing guidelines first.
FAQs
Use versioned assets with Acetate for cache-busting.
We found that acetate-asset-revisions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.