UnocssPluginContext
interface UnocssPluginContext <Config extends UserConfig = UserConfig> {
affectedModules: Set<string>;
extract: (code: string, id?: string) => Promise<void>;
filter: (code: string, id: string) => boolean;
getConfig: () => Promise<Config>;
getConfigFileList: () => string[];
invalidate: () => void;
modules: BetterMap<string, string>;
onInvalidate: (fn: () => void) => void;
onReload: (fn: () => void) => void;
ready: Promise<LoadConfigResult<Config>>;
reloadConfig: () => Promise<LoadConfigResult<Config>>;
root: string;
tasks: Promise<any>[];
tokens: Set<string>;
uno: UnoGenerator;
updateRoot: (root: string) => Promise<LoadConfigResult<Config>>;
flushTasks(): Promise<any>;
}§Type Parameters
§
Config extends UserConfig = UserConfig
[src]§Properties
§
ready: Promise<LoadConfigResult<Config>>
[src]§
reloadConfig: () => Promise<LoadConfigResult<Config>>
[src]§
uno: UnoGenerator
[src]§
updateRoot: (root: string) => Promise<LoadConfigResult<Config>>
[src]