Can you show your resources/js/app.jsx?
Jul 15, 2022
3
Level 1
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(),
],
});
Please or to participate in this conversation.