{"library":"rollup-plugin-hash","title":"rollup-plugin-hash","description":"Rollup plugin to append content hashes to bundle filenames using a [hash] placeholder pattern, enabling long-term caching. Current stable version is 1.3.0, last updated in 2019. It supports configurable hash algorithms (md5, sha1, sha256, sha512), truncation via [hash:N], optional manifest generation mapping original to hashed filenames, and a replace option to overwrite the original output. Release cadence is low; package is in maintenance mode. Differentiators include simplicity and explicit manifest support, though it is not actively developed and may lack native Rollup v2+ plugin API compliance.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-hash"],"cli":null},"imports":["import hash from 'rollup-plugin-hash'","const hash = require('rollup-plugin-hash')","import type { RollupOptions } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport hash from 'rollup-plugin-hash';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/index.js',\n    plugins: [\n      hash({\n        dest: 'dist/bundle.[hash:8].js',\n        manifest: 'dist/manifest.json'\n      })\n    ]\n  });\n  await bundle.write({ format: 'iife', file: 'dist/bundle.js' });\n}\nbuild().catch(console.error);","lang":"javascript","description":"Basic Rollup build with rollup-plugin-hash: generates hashed output filename and writes a manifest file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}