@MirkoTdi Thank you, what I did is:
in resources/admin/admin.js:
import '../adminLTE-3.2.0/plugins/jquery/jquery.min.js'
import '../adminLTE-3.2.0/plugins/bootstrap/js/bootstrap.bundle.min.js'
import '../adminLTE-3.2.0/dist/js/adminlte.min.js'
In vite.config.js:
export default defineConfig({
plugins: [
laravel({
input: [
'resources/admin/admin.scss',
'resources/admin/admin.js'
],
refresh: true,
}),
],
});
And in scripts.blade:
@vite(['resources/admin/admin.js'])
It looks like it works, but I still want to understand what is the benefit of using vite instead of just calling the scripts themselves. I don't really understand what it does?