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

scenox's avatar

Vite equivalent to mix.babel()

Hello, i am moving from mix to vite but i'm not sure how to go about merging multiple js files into one

mix.babel([
        'resources/legacy/plugins/datatables-1.10.18/DataTables-1.10.18/js/jquery.dataTables.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Buttons-1.5.2/js/dataTables.buttons.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Buttons-1.5.2/js/buttons.bootstrap.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Buttons-1.5.2/js/buttons.colVis.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Buttons-1.5.2/js/buttons.html5.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Select-1.2.6/js/dataTables.select.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Select-1.2.6/js/select.bootstrap.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Responsive-2.2.2/js/dataTables.responsive.min.js',
        'resources/legacy/plugins/datatables-1.10.18/Responsive-2.2.2/js/responsive.bootstrap.min.js',
], 'public/assets/js/datatables.js');

Is there any way to replicate this or this is no longer recommended in vite?

0 likes
0 replies

Please or to participate in this conversation.