DEV Community


Discussion on: Setting up TailwindCSS in Laravel project

klickers profile image
Catherine Chen Author • Edited

Try the code below in your webpack.config.js and let me know if it works.

mix.css('resources/css/app.css', 'public/css')   // replace with sass if using sass
        processCssUrls: false,
        postCss: [ tailwindcss() ],
    .js('resources/js/app.js', 'public/js');    // remove if you don't need js
nokibrokes profile image
Ariful Mowla • Edited

It seems like my nodejs problem. It's working on another PC.
in my PC:
another PC with the same config with version:

Thread Thread
klickers profile image
Catherine Chen Author

Ahh, okay! That's really strange. I'm glad you figured it out, though!

Forem Open with the Forem app