From c98579e49951f04c7d125f51f4e2162c67c9019e Mon Sep 17 00:00:00 2001 From: Kerim Hudson <31065041+baosoy@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:09:17 +0100 Subject: [PATCH] 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 --- init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.ts b/init.ts index b65c751b..caa65de9 100644 --- a/init.ts +++ b/init.ts @@ -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; `;