@stylable/core
Version:
CSS for Components
10 lines • 702 B
TypeScript
import postcss from 'postcss';
import { ParsedValue } from './types';
export declare type OnUrlCallback = (node: ParsedValue) => void;
export declare function collectAssets(ast: postcss.Root): string[];
export declare function isExternal(url: string): boolean;
export declare function isAsset(url: string): boolean;
export declare function makeAbsolute(resourcePath: string, rootContext: string, moduleContext: string): string;
export declare function processDeclarationUrls(decl: postcss.Declaration, onUrl: OnUrlCallback, transform: boolean): void;
export declare function fixRelativeUrls(ast: postcss.Root, originPath: string, targetPath: string): void;
//# sourceMappingURL=stylable-assets.d.ts.map