v2.1.0 - Multiple configs + formatters
Multiple configs are here!
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",
}
]),
Formatting the outputs!
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",
}),
What's Changed
- Change license field in package.json to MIT by @KubaJastrz in #15
New Contributors
- @KubaJastrz made their first contribution in #15
Full Changelog: v2.0.0...v2.1.0