UNPKG

reboost

Version:

A super fast dev server for rapid web development

15 lines (14 loc) 542 B
import { Plugin } from 'postcss'; export declare type TesterFn = (url: string) => boolean; export interface ParsedImport { url: string; media: string; } export declare const hasImportsIn: (css: string) => boolean; export declare const importParser: (imports: ParsedImport[], testerFn: TesterFn) => Plugin; export interface ParsedURL { url: string; replacement: string; } export declare const hasURLsIn: (css: string) => boolean; export declare const urlParser: (urls: ParsedURL[], testerFn: TesterFn) => Plugin;