denoland / fresh

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

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

Closed kerimhudson closed 4 months ago

kerimhudson commented 4 months ago

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