release: WRNexusJS 0.2.51
This commit is contained in:
@@ -54,10 +54,10 @@ const config: AppConfig = {
|
||||
// Real Tailwind v4 build. Runs once at dev-serve time (cached, re-run on a
|
||||
// restart) and at `wrnexus build`. `@tailwindcss/cli` writes to stdout by
|
||||
// default, so we just capture and return the final CSS string.
|
||||
process: async ({ entryPath, mode }) => {
|
||||
process: async ({ entryPath, appRoot, mode }) => {
|
||||
const args = ["@tailwindcss/cli", "-i", entryPath!];
|
||||
if (mode === "production") args.push("--minify");
|
||||
return await Bun.$`bunx ${args}`.text();
|
||||
return await Bun.$.cwd(appRoot)`bunx ${args}`.text();
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user