Skip to content

Commit

Permalink
fix: support tailwind.config.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Feb 21, 2024
1 parent 0a827f6 commit c037b01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const imageInlineSizeLimit = parseInt(
const useTypeScript = fs.existsSync(paths.appTsConfig);

// Check if Tailwind config exists
const useTailwind = fs.existsSync(
path.join(paths.appPath, 'tailwind.config.js')
);
const useTailwind =
fs.existsSync(path.join(paths.appPath, 'tailwind.config.js')) ||
fs.existsSync(path.join(paths.appPath, 'tailwind.config.cjs'));

// Get the path to the uncompiled service worker (if it exists).
const swSrc = paths.swSrc;
Expand Down

0 comments on commit c037b01

Please sign in to comment.