vite-plugin-svg-spritemap
Version:
Generates a SVG spritemap from multiple .svg files
12 lines (11 loc) • 400 B
TypeScript
import type { Plugin } from 'vite';
import type { Config as SVGOConfig } from 'svgo';
export interface SvgSpritemapOptions {
pattern: string;
prefix?: string;
filename?: string;
svgo?: SVGOConfig | boolean;
currentColor?: boolean;
emit?: boolean;
}
export declare function svgSpritemap({ pattern, prefix, filename, svgo, currentColor, emit, }: SvgSpritemapOptions): Plugin[];