SvgoPluginConfig
data class SvgoPluginConfig(val js2svg: SvgoPluginConfig.Js2SvgConfig = Js2SvgConfig(), val plugins: List<SvgoPlugin>)(source)
Platform-agnostic description of an SVGO configuration.
This is the single source of truth for all SVGO settings used across the project. Platform-specific code renders it to the appropriate format:
CLI path: toEsmModuleContent → JS module string for the
svgoCLIBrowser path:
toBrowserConfig()(jsMain) → dynamic JS object forsvgo/browser
Properties
Functions
Link copied to clipboard
Renders this SvgoPluginConfig as a browser-compatible dynamic JS object for the svgo/browser API.
Link copied to clipboard
Renders this SvgoPluginConfig as an ESM module string suitable for the svgo CLI's --config flag.