webpack-contrib / postcss-loader

PostCSS loader for webpack
MIT License
2.86k stars 211 forks source link

feat: add support for TypeScript based configs #632

Closed xeho91 closed 1 year ago

xeho91 commented 1 year ago

Resolves #631

This PR contains a:

Motivation / Use-Case

TailwindCSS since version ^3.3.0 has support for TypeScript based configs. Including PostCSS.

Hence, I've added patterns to search for config files, which end with the following extensions:

Breaking Changes

None so far.

Additional Info

631

linux-foundation-easycla[bot] commented 1 year ago

CLA Signed

The committers listed above are authorized under a signed CLA.

xeho91 commented 1 year ago

I had to install two packages:

I have added test cases for two config types:

Lemme know if it's enough. I have skipped the other possible patterns, e.g. postcssrc.ts, etc. Locally the tests for config-autoload/ pass successfully for me; however, the other tests fail- and I have no clue if they're relevant. Any guidance would be much appreciated. :pray:

alexander-akait commented 1 year ago

Oh, there is a bug in npm, I will merge and will fix it in the other PR, thank you for the PR