You can try adding a new configuration; it is described here: https://laravel-vite.dev/guide/extra-topics/multiple-configurations.html#multiple-configurations. If that does not work you might want to switch (back) to laravel mix https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-vite-to-laravel-mix
Jul 15, 2022
4
Level 9
How to bundle multiple JS files the way we do it in mix
Hi, with Laravel mix it was really easy to bundle multiple JS files like this:
mix.scripts([
'resources/js/script_1.js',
'resources/js/script_2.js',
'resources/js/script_3.js',
],'public/assets/js/scripts.bundle.js')
How can I do this with Vite?
Please or to participate in this conversation.