UNPKG

svg-spritemap-webpack-plugin

Version:

Generates symbol-based SVG spritemap from all .svg files in a directory

11 lines (10 loc) 670 B
import webpack from 'webpack'; import xmldom from '@xmldom/xmldom'; import { Options } from '../types.js'; export declare const SVG_PARSER: xmldom.DOMParser; export declare const SVG_SERIALIZER: xmldom.XMLSerializer; export declare const generateSVG: (sources: Record<string, string>, options: Options, warnings: webpack.WebpackError[]) => string | undefined; export declare const cleanSVG: (content: string) => string; export declare const optimizeSVG: (content: string, options: Options) => string; export declare const generatePrefix: (location: string, options: Options) => any; export declare const generatePostfix: (value: string | boolean | undefined) => string;