{"repo":"rodshtein/sveltekit-sprite","free":true,"listed":false,"github":"https://github.com/rodshtein/sveltekit-sprite","clone":"git clone https://github.com/rodshtein/sveltekit-sprite.git","description":"The plugin compile svg files into a sprite and render to the app template","language":"TypeScript","stars":12,"topics":["plugin","sveltekit","svgo"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"SvelteKit Sprite Plugin This plugin simplifies the process of using SVG sprites within your SvelteKit projects. It compiles your SVG files into a single sprite, optimizing them with SVGO, and injects the sprite directly into your application's HTML. Key Features SVG Sprite Generation: Creates a single SVG sprite containing symbols derived from your source SVG files. Optimized with SVGO: Applies SVGO (Scalable Vector Graphics Optimizer) to reduce file size and improve performance. Includes options to customize optimization. Unique Symbol IDs: Generates unique IDs for all symbols within the sprite, ensuring proper referencing. Folder-Based IDs: Supports folder-based organization of your SVG files, reflecting in the symbol IDs for easy referencing. Direct HTML Injection: Injects the generated sprite directly into your application's app.html file for streamlined integration. File Watcher: Watches for changes in your SVG source directory and automatically regenerates the sprite during development. Style Prefix: Replace all id's inside the svg files to be more specific to your project Roadmap (Completed features are marked) - [x] Build sprite from folder - [x] Style id encapsulating - [x] Generate a single SVG sprite file. - [x] Remove injectLabel option. - [x] Add outputFile option. - [x] Add watch for svgSource change. - [x] Reload the page when the sprite file is generated. - [ ] Build sprite from files array - [ ] Error handling - [ ] Save sprite to file - [ ] Unwrap symbols fr","default_branch":null,"files":null,"tree":[],"storefront":"/r/rodshtein","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rodshtein/sveltekit-sprite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}