i have idea to compiile tailwind in php in production mode #123
Replies: 2 comments
-
Hi Vahid—thanks for posting this! I definitely understand the motivation here, but it runs counter to my goals for _tw. I'm specifically interested in:
This is obviously opinionated, but I do think the cons as listed as your second link are worth considering: I'm not comfortable with a slow cache-warming period upon deployment, and I think requiring support for I think this is a great idea, and I get why it would be great for some people, but unfortunately it doesn't fit with my current and future plans for what I think _tw should be. Thanks again for suggesting this, and I'll convert this issue to a discussion in the meantime! |
Beta Was this translation helpful? Give feedback.
-
I worked with this method in Laravel and it had a good result. It is the same as wp. It checks a specific path and converts the css file from the html content of the template to a css file. Something like compile scss in bootstrap formats, which is normal. But it can be interesting for tw because when we want to develop the template using tw snips, it is enough to put a piece of html code in the prod environment and then compile it online with php and run the css file. The second link I sent may not be very useful, the first link is important |
Beta Was this translation helpful? Give feedback.
-
thank you for _tw , i use arnolem/tailwindphp in other php project , this can add new feature to allow re-compile theme online whitoit npm and just with php .
there is sample code tailwindlabs/tailwindcss#8105
Beta Was this translation helpful? Give feedback.
All reactions