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
  • Loading branch information
mcansh committed Mar 20, 2023
1 parent 683c168 commit bed07b6
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 bed07b6

Please sign in to comment.