Releases: SpiriitLabs/vite-plugin-svg-spritemap
Releases · SpiriitLabs/vite-plugin-svg-spritemap
v3.0.0
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 toinjectSvgOnDev
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
v2.3.0
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
- 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 prefixstyles.names.sprites
To change the sprites map name containing all sprites informationsstyles.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
v2.2.3
v2.2.2
v2.2.1
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
Version 2.1.0
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