跳到主要内容

接口: TailwindcssPatchOptions

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:113

Root configuration consumed by the Tailwind CSS patch runner.

属性

cache?

optional cache: boolean | CacheUserOptions

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:128

Cache configuration or boolean to enable/disable quickly.


cwd?

optional cwd: string

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:118

Base directory used when resolving Tailwind resources. Defaults to process.cwd().


features?

optional features: FeatureUserOptions

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:124

Feature toggles for optional helpers.


filter()?

optional filter: (className) => boolean

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:126

Optional function that filters final class names.

参数

className

string

返回

boolean


output?

optional output: OutputUserOptions

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:130

Output configuration or boolean to inherits defaults.


overwrite?

optional overwrite: boolean

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:120

Whether to overwrite generated artifacts (e.g., caches, outputs).


tailwind?

optional tailwind: TailwindUserOptions

定义于: node_modules/.pnpm/tailwindcss-[email protected]_magicast@[email protected]/node_modules/tailwindcss-patch/dist/index.d.ts:122

Tailwind-specific configuration grouped by major version.