Vite is build with plugin support, so I am sure you can find one that can do what you want. Example https://www.npmjs.com/package/vite-plugin-static-copy or https://www.npmjs.com/package/vite-plugin-copy
Jul 10, 2022
7
Level 1
Vite & FontAwesome - webfonts/fa-* 404 error
I have started a new laravel project and saw laravel switched to vite instead of mix. As I am trying to stick with vite, I am running in some problems and couldn't find a clear solution. The problem I am facing is vise does not move the font files to /public/webfonts/.
In mix (webpack) you could add a line to webpack.mix.js like this:
mix.copy('node_modules/@fortawesome/fontawesome-pro/webfonts', 'public/webfonts');
Is there a way I could do this in vite? or am I approaching it the wrong way?
Please or to participate in this conversation.

