feat: add native TailwindCSS plugin (#2056)

This commit is contained in:
Marvin Hagemeister
2023-11-21 17:22:18 +01:00
committed by GitHub
parent daf15aee6f
commit 93e4b7e9b7
29 changed files with 454 additions and 1 deletions
@@ -0,0 +1,18 @@
import { Plugin } from "$fresh/server.ts";
export function middlewarePlugin(): Plugin {
return {
name: "mw-plugin",
middlewares: [
{
path: "/",
middleware: {
handler: (req, ctx) => {
console.log("hey", req.url);
return ctx.next();
},
},
},
],
};
}