Skip to content

v2.3.0

Compare
Choose a tag to compare
@Applelo Applelo released this 09 Oct 12:42
· 11 commits to main since this release
44d8ff4

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