vite-plugin-svg-sprite

this vite plugin will transform any imported svg files and combine them into a cachable svg sprite sheet

Downloads
168
Stars
14

Bot releases are visible (Hide)

vite-plugin-svg-sprite - @mcansh/[email protected] Latest Release

Published by github-actions[bot] 6 months ago

Patch Changes

  • f863ed9: remove import assertion as it breaks other tooling

    instead just hardcode the plugin name

vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • b67fd78: fix virtual module name
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • 9507fa9: use vite's emitFile to emit consistent file to all builds

    do some post build file transforms to replace the dev sprite name with the actual hashed sprite filename

    sort icons before adding to sprite for consistent hashes

Patch Changes

  • 41f7c0c: re-add virtual module support
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 41f7c0c: re-add virtual module support
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • 9507fa9: use vite's emitFile to emit consistent file to all builds

    do some post build file transforms to replace the dev sprite name with the actual hashed sprite filename

    sort icons before adding to sprite for consistent hashes

vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • 9f2e3a5: copy common svg attributes to underlying symbol
  • b4955f5: add svgo to minify sprite, re-add hashing to sprite.svg file name, adds a virtual moduel virtual:vite-svg-sprite-plugin that returns the sprite url for preloading, etc, adds client.d.ts file for virtual module

Patch Changes

  • 4bf401b: check if output file has hash before attempting to replace
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • f1736bd: feat: remove sprite-[hash], hash symbol name using hasha
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 847d7f5: hash emitted svg during build
  • 26407a9: emitted file name fix
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 53d9e7e: dont add icon to sprite multiple times
  • e26739e: hash emitted svg during build
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 4a86394: add missing fs-extra dependency
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 2fd42d8: rename exported function to createSvgSpritePlugin
vite-plugin-svg-sprite - @mcansh/[email protected]

Published by github-actions[bot] 7 months ago

Patch Changes

  • 2fd42d8: rename exported function to createSvgSpritePlugin
vite-plugin-svg-sprite - 0.1.1

Published by mcansh 7 months ago

vite-plugin-svg-sprite -

Published by mcansh 7 months ago

Initial Release

Package Rankings
Top 37.14% on Npmjs.org