This PR adds general support for an `exclude` option to file transformers. This allows plugin to skip processing excluded files. The exclude array can be a `string`, a `RegExp` or a glob pattern. Fixes https://github.com/denoland/fresh/issues/2937
Tailwind CSS plugin for Fresh
A Tailwind CSS plugin to use in Fresh.
// dev.ts
import { tailwind } from "@fresh/plugin-tailwind";
import { FreshDevApp } from "fresh/dev";
import { app } from "./main.ts";
const devApp = new FreshDevApp();
// Enable Tailwind CSS
tailwind(devApp);
devApp.mountApp("/", app);
if (Deno.args.includes("build")) {
await devApp.build({
target: "safari12",
});
} else {
await devApp.listen();
}
To learn more about Fresh go to https://fresh.deno.dev/.