Bot releases are visible (Hide)
Published by AlemTuzlak about 2 months ago
Fixed an issue where the spritesheet wasn't picked up in certain conditions
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v2.2.0...v2.2.1
Published by AlemTuzlak about 2 months ago
From v2.2.0 The plugin will respect your assetsInlineLimit defined in your Vite config and will only ignore it for the spritesheets generated by the plugin itself, meaning you don't have to opt-out of the inlining of small assets just to use this plugin
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v2.1.0...v2.2.0
Published by AlemTuzlak 2 months ago
From 2.1.0 you can pass in an array of configs instead of a single one which will generate multiple watchers and bundles accordingly. Check out the README for details on this!
Full example:
iconsSpritesheet([
{
withTypes: true,
inputDir: "icons",
outputDir: "./app/icons",
formatter: "prettier"
},
{
withTypes: true,
inputDir: "icons",
outputDir: "./public/icons",
formatter: "biome",
pathToFormatterConfig: "./biome.json",
}
]),
From 2.1.0 you can specify prettier
or biome
as formatters which will format your output files before they are generated and then write them to the directories. You can also specify a path to your formatter config to be used by the formatter under the hood via pathToFormatterConfig
Full example:
iconsSpritesheet({
withTypes: true,
inputDir: "icons",
outputDir: "./public/icons",
// Linter and path to config specified
formatter: "biome",
pathToFormatterConfig: "./biome.json",
}),
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v2.0.0...v2.1.0
Published by AlemTuzlak 3 months ago
The plugin will now run BEFORE your build starts so the icon artifact is output to the location before the building starts.
Now uses the generated array to generate the type instead of duplicating both for a smaller file
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v1.3.0...v2.0.0
Published by AlemTuzlak 4 months ago
The plugin uses Vite internal helpers to resolve the path but this was causing issues in vite.config.ts
where the types were locked to a specific Vite version. The typesafety has been moved inside of the plugin now and the return type ahs been loosened.
Also, Vite is now a peerDependendency instead of a dependency so it can work with a bigger range of Vite versions.
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v1.2.1...v1.3.0
Published by AlemTuzlak 5 months ago
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v1.2.0...v1.2.1
Published by AlemTuzlak 5 months ago
From v1.2.0 onwards you can change and customize your icon naming convention to suite your needs.
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v1.1.2...v1.2.0
Published by AlemTuzlak 5 months ago
Now the icons will be generated as soon as you start your server.
generateIcons
at startup if sprite.svg does not exist by @OnurGvnc in https://github.com/forge42dev/vite-plugin-icons-spritesheet/pull/4
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/v1.1.1...v1.1.2
Published by AlemTuzlak 5 months ago
Fixed an issue where if there were no files in the output dir the plugin didn't work properly
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/1.1.0...v1.1.1
Published by AlemTuzlak 5 months ago
Now only writes if there are any changes, does not write on every change.
Listens to add/delete events as well and outputs the icons when a new one is added or old one is removed.
Full Changelog: https://github.com/forge42dev/vite-plugin-icons-spritesheet/compare/1.0.0...1.1.0
Published by AlemTuzlak 6 months ago