Did you run npm run dev?
And welcome to the forum :)
Hey!
I've just started my new Laravel project and would like to use Tailwind CSS so I go for a button like this
<button class="bg-black p-2 rounded">Click me</button>
which I expect to be a back button but I see this instead
[there supposed to be an image but I've registered just today]
So it is the button without a background.
What am I doing wrong?
@iamarsenibragimov You have 2 commands now
For dev you do npm run dev. Start this whenever you need to work on css/js or anything like that (adding classes). This does not store anything to disk. It just runs a dev server that injects the changes in realtime
For production do npm run build. This compiles the css/js to actual files (like you are used to from mix). You can also run this locally when you are done working with css/js for the day, to not have to run npm run dev next time you need to work, if you only plan to work on backend stuff
Hope that makes sense
If the issue is solved, please mark a best answer :)
Please or to participate in this conversation.