Vite has a lot of plugins to add functionality, so I am sure you can find one that suits your needs.
Example: https://www.npmjs.com/package/vite-plugin-static-copy
The Mix to Vite migration guide mentions that Vite lacks the ability to copy static assets into place, and unfortunately I'm doing exactly that to make some static libraries available. I have this in my webpack.mix.js file:
mix.copy(
[
'node_modules/chart.js/dist/chart.js'
],
'public/js/chart.js'
);
mix.copy(
[
'node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.js'
],
'public/js/chartdatalabels.js'
);
mix.copyDirectory('resources/fonts', 'public/fonts');
What should I replace that with to have it work with Vite? Is there something I can hook into npm install to do this?
Vite has a lot of plugins to add functionality, so I am sure you can find one that suits your needs.
Example: https://www.npmjs.com/package/vite-plugin-static-copy
Please or to participate in this conversation.