release: WRNexusJS 0.2.51
This commit is contained in:
@@ -253,10 +253,10 @@ const config: AppConfig = {
|
||||
// and at \`wrnexus build\`. \`@tailwindcss/cli\` writes to stdout, so we capture
|
||||
// and return the final CSS. Delete this hook to drop Tailwind — global.css is
|
||||
// still bundled and served as-is.
|
||||
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