-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
What version of Tailwind CSS are you using?
v3.2.6
What build tool (or framework if it abstracts the build tool) are you using?
Angular 15.1.4
What version of Node.js are you using?
v19.6.0
What browser are you using?
Chrome
What operating system are you using?
Linux
Reproduction URL
https://github.com/bagbag/tailwind-symlink-bug
Describe your issue
The project is a minimal angular project (--minimal) with only tailwind added.
The project has 2 changes:
- Added tailwind classes to index.html and app.component.ts
- Symlink:
ln -s ../../node_modules/@angular/core/README.md assets/README.md
New tailwind classes are not added in ng serve without restarting it. Try to change bg-red-500 to bg-green-500 in app.component.ts. The sqaure will disappear as bg-green-500 is not added to the css output.
This issue can be fixed by removing the symlink. Now class changes are added without restarting ng serve (may even require rm -rf .angular).
It does not matter what file type it is, the existence of a symlink is enough to break it.