Skip to content

Custom config path or support .ts extension #348

@seahindeniz

Description

@seahindeniz

Hi,

Is there a way to specify a custom config file name instead of tailwind.config.js.
For example, I don't like to have JS files in my project, so I use tailwind.config.ts with vanilla ES6 syntax just for shadowing the JS file extension. But in the meantime, I'm loosing intellisense feature of the extension. So in this case, I think having a config for specifying path is kind of needed.

Alternatively, these lines can have ts extension just to cover the issue.

const CONFIG_FILE_GLOB = '{tailwind,tailwind.config}.{js,cjs}'

const CONFIG_FILE_GLOB = '{tailwind,tailwind.config}.{js,cjs}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions