{"library":"rollup-plugin-svgo","title":"rollup-plugin-svgo","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-svgo"],"cli":null},"imports":["import svgo from 'rollup-plugin-svgo'","const svgo = require('rollup-plugin-svgo')","import svgo from 'rollup-plugin-svgo'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import svgo from 'rollup-plugin-svgo';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    svgo({\n      plugins: [\n        { removeViewBox: false },\n        { removeDimensions: true }\n      ]\n    })\n  ]\n};","lang":"javascript","description":"Shows basic Rollup configuration using rollup-plugin-svgo with custom SVGO plugin options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}