fix: add .js + .jsx extension to tailwind content glob (#2414)

Whilst Deno supports Typescript by default, not everyone necessarily
will want to write every file in Typescript. If using TailwindCSS, at
the moment the files Tailwind searches for classes does not include
`.js` and `.jsx` endings. Whilst you can manually add them via the
`tailwind.config.ts`, it might be nice to have these added in by default
for a better onboarding experience.

Closes #2291
This commit is contained in:
Kerim Hudson
2024-04-26 16:09:17 +02:00
committed by GitHub
parent 0e5962ce37
commit c98579e499
+1 -1
View File
@@ -330,7 +330,7 @@ const TAILWIND_CONFIG_TS = `import { type Config } from "tailwindcss";
export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx}",
"{routes,islands,components}/**/*.{ts,tsx,js,jsx}",
],
} satisfies Config;
`;