webfuelcode's avatar

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.

0 likes
4 replies
gych's avatar

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.

zerdotre's avatar
zerdotre
Best Answer
Level 1

You need to run npm run build before deploying.

And sometimes removing public/build from gitignore.

1 like
webfuelcode's avatar

Everything works fine on localhost.

On web server the initial styles came with laravel installation is working like dark background, dropdown and the navigation.

Those tailwind classes are not working that are added by me. Like grid, width...

gych's avatar

@webfuelcode Double check on your web server if the package for tailwind is successfully installed.

Please or to participate in this conversation.