Skip to content

Clarify docs for getting tailwind config file #278

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

Closed
nrgnrg opened this issue Mar 18, 2021 · 2 comments
Closed

Clarify docs for getting tailwind config file #278

nrgnrg opened this issue Mar 18, 2021 · 2 comments

Comments

@nrgnrg
Copy link

nrgnrg commented Mar 18, 2021

In more custom setups the tailwind config file might not be in the project root or might be named differently to tailwind.js or tailwind.config.js.

Tailwind supports these setups by specifying the config file in postcss.config.js

for example

module.exports = {
  plugins: {
    tailwindcss: { config: "./tailwind.config.cjs" },
    autoprefixer: {},
  },
};

It would be good if this plugin could scan postcss.config.js and if the tailwind file is defined there use that.

@nrgnrg
Copy link
Author

nrgnrg commented Mar 18, 2021

This actually appears to work so perhaps a clarification in the docs is needed?

@nrgnrg nrgnrg changed the title Support getting tailwind config file from postcss config Clarify docs for getting tailwind config file Mar 18, 2021
@bradlc
Copy link
Contributor

bradlc commented Oct 1, 2021

Yep tailwind.config.cjs is supported! Added a clarification to the readme, thanks!

@bradlc bradlc closed this as completed Oct 1, 2021
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

No branches or pull requests

2 participants