Skip to content

Commit

Permalink
resolve release on tailwind prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Jul 10, 2024
1 parent 3b19acf commit 64054f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/tailwind/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,14 @@ export const plugin = (config?: Config & { verbose?: boolean }): Plugin => {
},
// Compatibility mode. Only runs when config is not set directly
buildStart: async ({ staticDir }) => {
const cfg = config || await loadTailwindConfig(root);

const css = await bundle({
from: TAILWIND_FILE,
mode: "prod",
config: config || await loadTailwindConfig(root),
config: await withReleaseContent(cfg),
});

await Deno.writeTextFile(join(staticDir, TAILWIND_FILE), css);
},
};
Expand Down

0 comments on commit 64054f5

Please sign in to comment.