Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@unocss/core.ts>UnocssPluginContext

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface UnocssPluginContext
import { type UnocssPluginContext } from "https://deno.land/x/netzo@0.4.72/deps/@unocss/core.ts";

Type Parameters

optional
Config extends UserConfig = UserConfig

Properties

ready: Promise<LoadConfigResult<Config>>
uno: UnoGenerator
tokens: Set<string>

All tokens scanned

modules: BetterMap<string, string>

Map for all module's raw content

affectedModules: Set<string>

Module IDs that been affected by UnoCSS

tasks: Promise<any>[]

Pending promises

filter: (code: string, id: string) => boolean
extract: (code: string, id?: string) => Promise<void>
reloadConfig: () => Promise<LoadConfigResult<Config>>
getConfig: () => Promise<Config>
onReload: (fn: () => void) => void
invalidate: () => void
onInvalidate: (fn: () => void) => void
root: string
updateRoot: (root: string) => Promise<LoadConfigResult<Config>>
getConfigFileList: () => string[]

Methods

flushTasks(): Promise<any>

Await all pending tasks