Closed APB9785 closed 3 years ago
I'm thinking maybe it has something to do with the lack of phoenix.css
- if the generator is using the presence of that import to check the necessity of injection, then it will miss the case where phoenix.css
was already deleted and the import removed, but the tailwind imports still need to be added.
Thanks for the report. What command did you use to generate the initial Phoenix app? Did you delete phoenix.css
manually before running phx.gen.tailwind
?
I used https://phx.new to generate a sample 1.6 project, took the app.css
from the sample project and copy/pasted it into an existing project, which I am upgrading from 1.5 to 1.6. The phoenix.css
got deleted long ago.
I think I fixed it in v0.1.2-rc.0
which I just pushed, and added some tests too. If anyone encounters this again in future, feel free to ping me or open a new issue
When running
phx.gen.tailwind
with a regularapp.css
(no changes made from the 1.6 defaults), I get the noticeEverything else goes flawlessly, but I have to manually paste the imports in before installing NPM dependencies.