@tiny-css/compiler
Version:
The compiler for compiling & reducing the bundle size of tiny-css
22 lines (21 loc) • 724 B
TypeScript
import { Stylesheet } from "css";
interface BuildCSSClassOptions {
/**
* [!important] cache version is determined from this
*/
version: string;
disabledCache: boolean;
}
interface BuildCSSClassObject {
classnames: string[];
stylesheetObj: Stylesheet;
}
/**
* @description Takes a css filepath and returns an array of selector classes
* @author KR Tirtho
* @param {string} cssPath - This can be a absolute/relative `fs-path` or a `cdn` link
* @param {BuildCSSClassOptions} { version, disabledCache }
* @return {*} {Promise<string[]>}
*/
export declare function buildCSSClass(cssPath: string, { version, disabledCache }: BuildCSSClassOptions): Promise<BuildCSSClassObject>;
export {};