iamputhea's avatar

create new different tailwind config from Laravel Breeze

How can we use different tailwind config file from Laravel Breeze ?

0 likes
2 replies
drehimself's avatar
Level 35

In your webpack.mix.js file you can specify the custom tailwind config file in there:

mix.js('resources/js/app.js', 'public/js')
    .postCss('resources/css/app.css', 'public/css', [
        require('postcss-import'),
        require('tailwindcss')({
            config: './tailwind-custom-config.js'
        }),
        require('autoprefixer'),
    ]);

More info here: https://tailwindcss.com/docs/configuration#using-a-different-file-name

1 like

Please or to participate in this conversation.