Skip to content

Releases: SpiriitLabs/vite-plugin-svg-spritemap

v3.0.0

09 Dec 15:07
dd9383b
Compare
Choose a tag to compare

Warning

Please upgrade your project at least to Node 18 (Node 20 or 22 if you can). This version supports only Vite 5 and Vite 6. Node 14 and Node 16 are not supported by the plugin anymore. If you cannot upgrade, use the latest version 2.0 of this plugin.

Breaking Changes

  • Drop supports for Node 14 and Node 16
  • Rename injectSVGOnDev option to injectSvgOnDev to prevent misunderstanding with SVGO. injectSVGOnDev is still supported but will be remove in a future version.
  • SVGO is now optional. If you need it, you need to install it manually as a dependency.
# npm
npm i -D svgo #if you need svgo optimization

# yarn
yarn add -D svgo #if you need svgo optimization

# pnpm
pnpm add -D svgo #if you need svgo optimization

If the SVGO package is detected, the svgo option will be set to true by default.

What's Changed

  • Update dependencies
  • SVGO is now optional
  • Fix issue with sass global built-in deprecation warning
  • Fix issue with Vite 6 with manifest.json generation #60

v2.3.1

10 Oct 07:35
fa9b555
Compare
Choose a tag to compare

What's Changed

  • Fix issue with playwright postinstall in package.json #55
  • Improve test coverage

Full Changelog: v2.3.0...v2.3.1

v2.3.0

09 Oct 12:42
44d8ff4
Compare
Choose a tag to compare

Note

This version is not tested for Node 14 and Node 16. Please upgrade your project at least to Node 18 (Node 20 if you can). When Vite 6 will be released, Node 14 and Node 16 will not be supported by the plugin anymore.

What's changed

  • Support for multiple instance #39
  • CSS generation callback #16
  • Allow personnalization of the css generation (variables/mixin names) via styles.names options. This can be useful if you have multiple instance and want to personnalize the css variables names and mixin name.
    • styles.names.prefix To change the variable name of the prefix
    • styles.names.sprites To change the sprites map name containing all sprites informations
    • styles.names.mixin To change the mixin name
  • Add styles.include options to adjust the styles output. This can be useful if you have your own code or you are using multiple VitePluginSvgSpritemap instance
  • Update dependencies
  • Upgrade pnpm to v9

Full Changelog: v2.2.4...v2.3.0

v2.2.4

21 Jan 11:34
4cc9000
Compare
Choose a tag to compare

What's Changed

  • Fix path generation on windows #45
  • Rewrite test build to fix intermittent failed CI
  • Clean demo readmes

Full Changelog: v2.2.3...v2.2.4

v2.2.3

17 Jan 18:11
669f31f
Compare
Choose a tag to compare

What's Changed

  • Fix Vue component with ouput.use to false #43
  • Fix output options typescript

Full Changelog: v2.2.2...v2.2.3

v2.2.2

14 Jan 15:17
579a403
Compare
Choose a tag to compare
  • Fix Path to sprite incorrect in bundle with Svelte #40
  • Fix Vue component wrong href attribute

v2.2.1

13 Jan 19:32
b1e39a5
Compare
Choose a tag to compare

What's Changed

  • Update dependencies
  • Fix CJS warning when using with Nuxt #37
  • Fix invalid attribute width and height on VueJS component
  • Add Svelte and SvelteKit demos
  • Update server demo with Nitro
  • Rework demo folder to share styles and icons across technos

Full Changelog: v2.2.0...v2.2.1

Version 2.2.0

10 Jan 11:06
86c99be
Compare
Choose a tag to compare

What's Changed

  • Add support for Nuxt 3 #35
    Two issues are related but are not blocking the usage of the plugin in a Nuxt context. For more details check #37 and #38.
  • Fix Vue compilation (related to #34)
  • Fix Readme and Demo folder #34

Full Changelog: v2.1.0...v2.2.0

Version 2.1.0

18 Dec 16:54
46fa0f7
Compare
Choose a tag to compare

What's Changed

  • Update dependencies
  • Add idify option #27
  • Add JSDoc
  • Improve typings
  • Fix typings not present on final build
  • Fix readme output options
  • Fix coverage issue

Full Changelog: v2.0.1...v2.1.0

v2.0.1

28 Nov 08:22
551585e
Compare
Choose a tag to compare

What's Changed

  • Fix "didn't resolve at build time" warning #30

Full Changelog: v2.0.0...v2.0.1