Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SVGMiniNew to Visual Studio Code? Get it now.
SVGMini

SVGMini

avencera

|
1,064 installs
| (1) | Free
Minify inline SVGs, use this to minify SVGs that are in your HTML/JSX files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SVGMini Build Status Travis Build Status Appveyor npm version vscode marketplace extention

Usage

Run SVGMini: Minify SVGs in Current File from the command palette.


Explainer

Config

svgmini.replaceFill

When set SVGMini will replace all fill attributes in SVGs with currentColor. Defaults to false.

"svgmini.replaceFill": true

What?

A tool to minify SVGs that are contained in other documents (for example HTML or JSX files).

Why?

Lots of tools and plugins exist to minify SVGs for example:

  • SVGO
  • svgcleaner
  • SVG VSCode Plugin

However none of them did what I wanted, which was to minify SVGs within my HTML files.

Issues or Suggestions?

Post in the GitHub Repo: http://github.com/avencera/svgmini

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft