Skip to content

Add experimental.configFile setting #541

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

Merged
merged 8 commits into from
Apr 25, 2022
Merged

Add experimental.configFile setting #541

merged 8 commits into from
Apr 25, 2022

Conversation

bradlc
Copy link
Contributor

@bradlc bradlc commented Apr 25, 2022

Fixes #348

This PR adds a new experimental setting, tailwindCSS.experimental.configFile. This setting allows users to manually specify the Tailwind config file(s) that should be read to provide IntelliSense features.

For projects with a single Tailwind config file:

"tailwindCSS.experimental.configFile": ".config/tailwind.config.js"

For projects with multiple config files an object can be provided. Each key is a config file path and each value is a glob pattern (or array of patterns) representing the set of files that the config file applies to:

"tailwindCSS.experimental.configFile": {
  "themes/simple/tailwind.config.js": "themes/simple/**",
  "themes/neon/tailwind.config.js": "themes/neon/**"
}

Note that experimental settings may be changed or removed at any time.

@bradlc bradlc merged commit 78a20f4 into master Apr 25, 2022
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 this pull request may close these issues.

Custom config path or support .ts extension
1 participant