
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
cache-bust-plugin
Advanced tools
cache-bust-plugin is a tiny Webpack plugin for generating bundle hashes. It's a useful alternative to html-webpack-plugin for when you only require cache-busting.
Install the cache-bust-plugin package from npm.
npm install cache-bust-plugin
import {CacheBustPlugin} from "cache-bust-plugin";
export const webpackConfig = {
// ... Webpack config
plugins: [
new CacheBustPlugin({
// ... cache-bust-plugin options
})
]
}
If the writeToIndexHtml option is used then cache-bust-plugin searches for bundle file names in index.html (located in the root directory of your project) and appends bundle hashes using a query string.
index.html (before cache-bust-plugin) =>
<script type="text/javascript" src="/app.js"></script>
index.html (after cache-bust-plugin) =>
<script type="text/javascript" src="/app.js?hash=68b1a4d74cf4ef2b516f492bef010d8e"></script>
If the writeToJson option is used then cache-bust-plugin will write the bundle hashes to a JSON formatted text file.
{
"app.css": "faa879842aef4070b5563ccdc0016cf8",
"app.js": "faa879842aef4070b5563ccdc0016cf8",
"vendor.js": "e5487614083955d6896b53ac06edaffb"
}
The following options are available:
| Option | Description |
|---|---|
| writeToIndexHtml | Add bundle hashes to index.html as a query string using text replacement |
| writeToJson | Write bundle hashes to JSON formatted text file |
| jsonFileName | Used with writeToJson option (defaults to version.json) |
FAQs
cache-bust-plugin
We found that cache-bust-plugin 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 MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.