Skip to content

v2.1.0 - Multiple configs + formatters

Compare
Choose a tag to compare
@AlemTuzlak AlemTuzlak released this 08 Aug 11:33
· 5 commits to main since this release

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

New Contributors

Full Changelog: v2.0.0...v2.1.0