Skip to content

Commit

Permalink
chore(remix-dev): tailwind supports .mjs and .ts for their config now
Browse files Browse the repository at this point in the history
tailwindlabs/tailwindcss#10785
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Mar 20, 2023
1 parent 4d86674 commit a9126df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/remix-dev/compiler/utils/postcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ async function loadTailwindPlugin(

try {
// First ensure they have a Tailwind config
// tailwind doesn't support esm config files yet
let tailwindConfigExtensions = [".js", ".cjs"];
let tailwindConfigExtensions = [".js", ".cjs", ".mjs", ".ts"];
let tailwindConfig = findConfig(
rootDirectory,
"tailwind.config",
Expand Down

0 comments on commit a9126df

Please sign in to comment.