proballstar / 4Tutor-Website

By students, 4 students
1 stars 1 forks source link

Run PostCSS in workflow #1

Open GMbrianlaw opened 2 years ago

GMbrianlaw commented 2 years ago

Tailwind is not being compiled because PostCSS is not being run.

proballstar commented 2 years ago

Please create a pull request with the potential fix; I will review and push if I see fit

GMbrianlaw commented 2 years ago

Can't, this is something local. Because Vercel can't run workflows, you have to prebuild the Tailwind on your machine, then deploy the compiled CSS file.

aaritp-search commented 2 years ago

He’s right. You hosted it with local host.

GMbrianlaw commented 2 years ago

That's not what I mean. You can solve this issue by running a GitHub workflow.

Install Tailwind in the workflow, build the files, and deploy to Vercel. If you need help, I could try to help with the workflow.

https://github.com/actions/checkout https://github.com/marketplace/actions/vercel-action

GMbrianlaw commented 2 years ago

Another solution which could work is to run a Tailwind pre-commit hook, which compiles the css, then just reference in React components.