TailwindCssOptions
High-level Tailwind patch configuration shared across versions.
属性
config?
optionalconfig:string
Path to a Tailwind config file when auto-detection is insufficient.
cwd?
optionalcwd:string
Custom working directory used when resolving config-relative paths.
postcssPlugin?
optionalpostcssPlugin:string
Optional PostCSS plugin name to use instead of the default.
version?
optionalversion:2 | 3 | 4
Explicit Tailwind CSS major version used by the current project. When omitted, the installed package version is inferred.
packageName?
optionalpackageName:string
Tailwind package name if the project uses a fork.
resolve?
optionalresolve:PackageResolvingOptions
Package resolution options forwarded to local-pkg.
v2?
optionalv2:TailwindV2Options
Overrides applied when patching Tailwind CSS v2.
v3?
optionalv3:TailwindV3Options
Overrides applied when patching Tailwind CSS v3.
v4?
optionalv4:TailwindV4Options
Options specific to Tailwind CSS v4 patching.