SVG to Vue Component Compiler
JSON →svg-to-vue-component is a utility that compiles SVG files directly into Vue Single File Components (SFCs). This approach allows developers to import SVG assets as standard Vue components, enabling enhanced styling capabilities with CSS, direct application of DOM properties, and attachment of event handlers to the underlying SVG elements. The current stable version is 0.3.8, released in April 2019, indicating that the project is either abandoned or in a long-term maintenance state with no active development. Key differentiators include its built-in hot-reloading support via `vue-loader`, comprehensive support for all standard DOM props and events (unlike some alternatives that only support `class` and `style`), and flexible configuration options for SVGO, both project-wide and file-relative. It provides specific integration guides for Webpack, Vue CLI, Poi, and Nuxt.js 2 setups.
Traffic · last 30 days ↓37% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France