Hi everyone,
I'm running into a problem using vite,
I'm using the last version of laravel, running with Homestead
it's the first time that I use vite, seems like everything is configurated well but bootstrap it's not working...
someone can help me ?
this is my vite.config.js file:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel([
'resources/css/app.css',
'resources/js/app.js',
]),
],
server: {
host: '192.168.10.10',
watch: {
usePolling: true,
},
},
});
and I imported vite in my app.blade.php:
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])