Astro Id Minifier
JSON →An Astro integration plugin that minifies Astro's custom data attributes (data-astro-cid-*) used for style scoping, reducing HTML and CSS file sizes by replacing long attribute names with shorter alternatives. Current version is 0.0.3. It provides two modes: 'prefix' which produces valid data attributes (e.g., data-0), and 'maximum' which uses bare base-36 numbers (e.g., a). Unlike manual find-and-replace, this plugin automatically handles the mapping between original and minified attributes across all HTML and CSS files. Note: only works with static exports; SSR is not supported.
Resources
packageastro-id-minifier ↗
API endpoints
full doc /v1/registry/astro-id-minifier