Skip to content

Styles are missing, but only in production (build seems to succeed) #1246

Answered by lrljoe
iamgoodbytes asked this question in Q&A
Discussion options

You must be logged in to vote

Make sure you're including the Rappasoft path in your Tailwind config!

See the line in the content[]

Without that, Tailwind won't include the relevant classes, you'll need to do the same for any other packages that include views that are not published!

const defaultTheme = require('tailwindcss/defaultTheme');

/** @type {import('tailwindcss').Config} */
module.exports = {
    plugins: [require('@tailwindcss/forms')],
    content: [
        './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
        './vendor/rappasoft/laravel-livewire-tables/resources/views/**/*.blade.php',
        './storage/framework/views/*.php',
        './resources/views/**/*.blade.php…

Replies: 2 comments 1 reply

Comment options

lrljoe
Jun 9, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
Answer selected by iamgoodbytes
Comment options

You must be logged in to vote
1 reply
@lrljoe
Comment options

lrljoe Jun 9, 2023
Collaborator Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants