Skip to content

[DX] Expose defineConfig utility #842

@ineshbose

Description

@ineshbose

Is your feature request related to a problem? Please describe.

The inline tailwind config tailwindcss.config is one point of configuration that is typed (but limited to primitives and doesn't help with editor support), in that case we encourage the standard tailwind.config but our config type definition is more flexible that the standard config due to defu. Moreover, we have all configs getting merged, so the source of truth for the tailwind config is .nuxt/tailwind.config.cjs.

Describe the solution you'd like

A defineConfig utility that give the type definition for the configuration, but moreover, this utility can be programmed for the Tailwind VSCode IntelliSense plugin to read .nuxt/tailwind.config.cjs possibly (need to resolve circular import, but this would be incredible).

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions