@twarezak Can you try this?
rm -rf node_modules package-lock.json
npm install
npm run dev
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello,
I'm trying to start a new project on Laravel 12 with Tailwindcss. I have a problem with it because when I run npm run dev and open page in the browser, the app.css file is almost empty. It contain only:
@import "tailwindcss";
@source "../views";
I add it to the resources/css/app.css file based on this instruction for the tailwindcss doc.
In view I have:
<h1 class="text-center text-3xl text-red-600">Test Tailwind</h1>
so I'm expecting something more in the CSS file :D
My vite.config.js file looks like this:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
tailwindcss(),
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
});
Why in the browser the resources/css/app.css not contain any classes? What is missing? What am I doing wrong?
Please or to participate in this conversation.