postcss-color-golf
Version:
PostCSS plugin for aggressive minification and optimization of CSS color values. Make every color a hole-in-one for your bundle size!
12 lines (9 loc) • 327 B
TypeScript
import { PluginCreator } from 'postcss';
interface ColorGolfOptions {
skip?: (string | RegExp)[];
preferHex?: boolean;
ignoreApproximatedSpaces?: boolean;
ignoredSpaces?: string[];
}
declare const colorGolfPlugin: PluginCreator<ColorGolfOptions>;
export { type ColorGolfOptions, colorGolfPlugin as default };