Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vite-plugin-svg-icons-ng

yangxu5218kMIT1.4.1TypeScript support: included

Vite plugin for easily creating an SVG sprite and injecting it for use, with a brand-new version.

vite, vite-plugin, svg, icon, svg-icon, svg-icons, sprite, spritemap, spritesheet, svg-sprite, svg-sprites, symbol, svg-symbol, svgo

readme

vite-plugin-svg-icons-ng

Vite plugin for easily creating an SVG sprite and injecting it for use.

  • 🚀Preloading: All icons will be generated when the project is run, and only one DOM operate.
  • ⚡High Performance: Built-in cache, it will be regenerated only when the icon is modified.

Read the Docs to learn more

If you like this project, please give it a Star.

changelog

1.4.1 (2025-06-01)

  • refactor: optimize the injected code snippets (b143e59)
  • chore: update engines requirements (9da2000)

1.4.0 (2025-04-08)

Features

  • feat: custom stroke overwrite (68b5102)

Bug Fixes

  • fix: overwrite stroke issue (28a25d2)

1.3.1 (2025-03-24)

  • docs: fix component reference (55a62f4)
  • chore: add LICENSE.md and README.md to packages/core (0422b50)

1.3.0 (2025-03-16)

Features

  • feat: async process file and dir (940cb72)

1.2.2 (2025-03-12)

Bug Fixes

  • fix: incorrect removal of width and height issues, close #2 (c82da26)

  • chore: adjust playground style (da0b0f9)

1.2.1 (2025-03-12)

  • chore: adjust regexp for DOM id (ee72931)

1.2.0 (2025-03-11)

Little Breaking Change: the logic of generate symbol id logic is changed, and then add user option validation, but it should not affect normal users.

Features

  • feat: validate user option (6487937)

  • refactor: file split dirname and basename logic (e243bba)
  • refactor: generate symbol id logic (9d7ecd1)
  • chore: optimize type declaration (c5ef104)

1.1.1 (2025-03-10)

  • refactor: reserve svg attribute in convert process (bd3ecbc)

1.1.0 (2025-03-09)

  • refactor: implement ETag generation logic (cd901fd)
  • refactor: add cors header independently (0d549d2)
  • chore: remove the export of internal function (4e6f336)
  • docs: update README (dc062b8)

1.0.4 (2025-03-09)

  • chore: add prefix '\0' while resolving id (63b81a1)

1.0.3 (2025-03-07)

  • chore: optimize inject content (54c24de)
  • chore: package export client.d.ts (5835743)

1.0.2 (2025-03-05)

  • fix: SVGO may throw error, when svg file has DOCTYPE declaration (45cbe93)

1.0.1 (2025-03-05)

  • refactor: the svg to symbol convert logic (a89a61f)
  • chore:update README (47ce45a)
  • chore:rewrite ci (e3a610c)
  • chore: organize & optimize project (3e7dcc1)

1.0.0 (2025-03-03)

BREAKING CHANGES

  • refactor: implement the svg to symbol convert logic to remove svg-baker (84a0047)
    This may cause unknown problems, but it's working good now. Welcome to issue.

  • refactor: migrate to svgo v3 (82b6cfc)

  • refactor: migrate to ESLint v9 and Prettier v3 and reconfigure (87bc4d2)

  • chore: dev/test/build related dependencies version alignment of the create-vite@6.3.1 (ee84950)

  • chore: almost no-major dependencies update to the latest and fix some problems (commit 5f253f1)

  • chore: remove useless dependencies (commit 390561b)

  • chore: other organization work