denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.17k stars 623 forks source link

Bug: Tailwindcss not working in js/jsx files #2291

Closed marvinhagemeister closed 4 months ago

marvinhagemeister commented 7 months ago

Was reported on discord earlier today. Haven't looked into it yet.

kerimhudson commented 4 months ago

The default tailwind.config.ts doesn't include js,jsx in the content. The default initialisation could just add js,jsx to the list, if it's worth it.

import { type Config } from "tailwindcss";

export default {
  content: [
    "{routes,islands,components}/**/*.{ts,tsx}",
  ],
} satisfies Config;