Skip to content

Check for tailwind.config.cjs when detecting tailwind #23236

Closed
@L2jLiga

Description

@L2jLiga

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

Tailwind uses require to load config and it breaks build when ""type": module" is set in package.json

Describe the solution you'd like

Tailwind itself looking for both tailwind.config.js and tailwind.config.cjs

Looking for tailwind config with both extensions (js, cjs) to determine whether project use it or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions