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

stefr's avatar
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?

0 likes
4 replies
stefr's avatar
Level 9

@mukhtaaraziz No, I had some more issues with our complex mix configuration so decided to stick with mix a little longer until I have some time to clean it all up. Mix works for now.

Please or to participate in this conversation.