Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for TypeScript based configs, eg postcss.config.ts #631

Closed
xeho91 opened this issue Apr 2, 2023 · 0 comments · Fixed by #632
Closed

Support for TypeScript based configs, eg postcss.config.ts #631

xeho91 opened this issue Apr 2, 2023 · 0 comments · Fixed by #632

Comments

@xeho91
Copy link
Contributor

xeho91 commented Apr 2, 2023

Modification Proposal

Add patterns to search for TypeScript extensions .ts in the config search places in this file:

searchPlaces: [

Expected Behavior / Situation

Since TailwindCSS as of version ^3.3.0 supports ESM and TypeScript config, the postcss.config.ts should be supported and loaded.

Actual Behavior / Situation

No support for TypeScript config.
Breaks: vercel/next.js#47774

Please paste the results of npx webpack info here, and mention other relevant information

I tried to run this command on the reproduction sandbox: https://stackblitz.com/edit/vercel-next-js-p7yaj5

But it fails with the error:

❯ npx webpack info
success Install finished in 3.453s

CLI for webpack must be installed.
  webpack-cli (https://github.com/webpack/webpack-cli)

We will use "npm" to install the CLI via "npm install -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): no
You need to install 'webpack-cli' to use webpack via CLI.
You can also install the CLI manually.
@xeho91 xeho91 changed the title Support for postcss.config.ts Support for TypeScript based configs, eg postcss.config.ts Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant