Build web applications with Deno
Tailwindcss plugin for Mage.
Install the plugin.
deno add jsr:@mage/tailwindcss npm:tailwindcssApply the plugin to your Mage app.
import { MageApp } from "@mage/app";
import { tailwindcss } from "@mage/tailwindcss";
export const app = new MageApp();
app.plugin(
tailwindcss({
entry: "./src/main.css",
output: "./public/main.css",
}),
);When running app.develop() the plugin will compile your CSS automatically on
changes.
When running app.build() the plugin will compile your CSS once and optimise it
for production.
