rollup-plugin-svgo
JSON →A Rollup plugin that imports SVG files and optimizes them using SVGO (SVG Optimizer). Current stable version is 2.0.0. The plugin processes SVG files through SVGO to remove redundant and useless information (editor metadata, comments, hidden elements, non-optimal values) and exports the cleaned SVG content as a string. Key differentiators: simple integration with Rollup, passes through raw SVG content with `raw: true`, and allows direct configuration of SVGO plugins via plugin options. Unlike generic asset imports, it specifically pairs with SVGO for optimized inline SVG usage in JavaScript bundles.
Traffic · last 30 days stale · no recent hits
total hits 15
actors 6 distinct systems
last hit 25d ago AhrefsBot
top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇬🇧 United Kingdom · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/rollup-plugin-svgo
compatibility /v1/registry/rollup-plugin-svgo/compatibility