Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sannjay's avatar

Where `app.css` is called in interia react?

I finally choose Inertia react over Livewire to build my app. I installed a fresh laravel app and used php artisan breeze:install react to setup all. Everything is working as expected. I was trying to understand the structure.

I can't get my head around how the app.css is being called on various routes like /register or /login? I checked app.blade.php and app.jsx but can not see app.css being called anywhere. Neither it is present in any of js/Pages/*.jsx file.

I am using vite which also doesn't have any mention of css. below is my vite configuration

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
    plugins: [
        laravel({
            input: 'resources/js/app.jsx',
            refresh: true,
        }),
        react(),
    ],
});
0 likes
3 replies
Sinnbeck's avatar

Can you show your resources/js/app.jsx?

sannjay's avatar

@Sinnbeck My apologies for being an idiot. For some reason. I couldn't see the top 2 imports and one of them is app.css.

Please or to participate in this conversation.