feat: add native TailwindCSS plugin (#2056)
This commit is contained in:
@@ -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();
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user