Mokshit06 / typewind

The safety of Typescript with the magic of Tailwind.

Home Page:https://typewind.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add support for ts config files

sigmachirality opened this issue · comments

typewind generate fails when the tailwind config is a typescript file instead of a cjs file. Is there any way we can get support for writing the tailwind file as a cjs file, or does tailwind require specific behavior from cjs/require import syntax module loading?

Same issue with postcss.config.cjs.

Tailwind requires the config file to either be tailwind.config.js or tailwind.config.cjs and can't import a ts config file.

TS also doesn't have much advantage in the config as you already get autocompletion in js with jsdoc