vite-plugin-svg-spritemap
vite-plugin-svg-spritemap copied to clipboard
Vite plugin to generate svg spritemap
I have been at this all day but it seems that plugin cant resolve path correctly as per README.md Clean new VITE project with VUE Vite.config.js ``` import { defineConfig...
Currently, multiple instance of the plugin are not possible because of the __spritemap server. Make `/__spritemap` editable by the user with the `output.name` option ? ```ts { plugins: [ VitePluginSvgSpritemap('./assets/icons/*.svg',...
How to use as npm package. I have a problem with not being able to set the path to the sprite file in production mode
Hello. My SVG sprite does not reassemble in development mode if I delete or add an element to the icon pack. https://github.com/uskov-dev/tstvite
Hi, how would I add the correct SVG path when using native JavaScript? This won't replace the correct path: ```js const svg = document.createElement('svg'); const svgUse = document.createElement('use'); svgUse.setAttribute('href', '/__spritemap#sprite-comment');...
Hi Thank you for creating this plugin. I wonder if we can make this work with React too. Like svgr but with SVG sprites. I currently use https://github.com/alexanderson1993/svg-icons-cli/ for it...
When an icon is updated/renamed, the old value is still present. A new build or reload of the plugin remove the duplicated. Below change the name of the file 2...
> [!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...