Documentation / zerotal / dev / detectCssPlugins
Function: detectCssPlugins()
detectCssPlugins(
cwd):Promise<BunPlugin[]>
Defined in: packages/core/src/dev/CssPlugins.ts:24
Detect and load bun-plugin-tailwind from the app's own node_modules.
Bun ships first-class CSS support and bun-plugin-tailwind handles
Tailwind v4 natively — no PostCSS or @tailwindcss/postcss needed.
Apps only need:
bun add -d bun-plugin-tailwind
Packages are resolved from the project CWD (not from @zerotal/core) so the plugin only needs to be in the app's own node_modules.
Returns an empty array when bun-plugin-tailwind is not installed.
The caller falls back to a bunx @tailwindcss/cli subprocess.
Parameters
cwd
string
Returns
Promise<BunPlugin[]>