Skip to content

Fix tailwind plugins by symlinking node_modules#8

Open
ekrem-qb wants to merge 1 commit intoShubhamVG:masterfrom
ekrem-qb:master
Open

Fix tailwind plugins by symlinking node_modules#8
ekrem-qb wants to merge 1 commit intoShubhamVG:masterfrom
ekrem-qb:master

Conversation

@ekrem-qb
Copy link

No description provided.

@ekrem-qb ekrem-qb marked this pull request as ready for review August 13, 2025 17:01
@lukehutch
Copy link

This looks like it would almost fix my issue #15. However, in my case I don't have node_modules in my project -- tailwindcss finds ~/node_modules after hunting through parent directories. Also tailwindcss looks for package.json as an alternative to node_modules.

I think the best fix (as I mentioned in #15) is actually to simply create the temp dir in <project_root>/build/, to allow tailwindcss to use its usual logic to find node_modules and/or package.json.

However, perhaps the best solution of all, since there is only one output file per call to tailwindcss, is just to do the conversion in-place, and not even use a temp dir.

@lukehutch lukehutch mentioned this pull request Nov 29, 2025
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.

2 participants