tailwind pagination classes not compiled I came across a bit of a challenging issue that took me a long time to work out.
"npm run dev" does not include classes required for the pagination items when called via the links() helper method.
For now I've added an empty div on the page with the missing classes to get them to compile e.g.
<div class="sm:hidden hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"></div>
but how do I go about making sure these compile without workarounds? I assume I can define the styles manually somewhere?
You can publish the views using
php artisan vendor:publish --tag=laravel-pagination
which will move the views from the vendor to your resources/views/vendor and then tailwind will be able to find and the jit will add the classes used in the pagination.
Fantastic. Works a treat. Thank you.
Please sign in or create an account to participate in this conversation.