Before uploading the files to the server, can you test if the styles work in your local build? Open your builded project locally in browser first from the public folder to check if everything works.
Feb 2, 2024
4
Level 4
Tailwind styles are broken in web server
First time with tailwind. Uploaded laravel project and the styles are broken. I searched many tutorials and posts got no help.
Level 1
You need to run npm run build before deploying.
And sometimes removing public/build from gitignore.
1 like
Please or to participate in this conversation.