Interface PluginOptions

Hierarchy

  • PluginOptions

Properties

exclude?: FilterPattern

The scopes/paths to be excluded. If undefined no svg files will be unprocessed.

include?: FilterPattern

The scopes/paths to be processed. If undefined all resolved SVG are processed.

root?: string

The root path that below include/exclude scopes will be resolved from. If undefined process.cwd() is used and likely what you want.

svgo?: boolean | OptimizeOptions

Specify svgo options, leave undefined for defaults or false to disabled optimization. The plugin will also look for svgo.config.js if you prefer a configuration file.

Default

true uses SVGO defaults.

See

https://github.com/svg/svgo

type?: SvgType

The default output type for imported SVG.

Default

'component'

Generated using TypeDoc