I had a laravel 7 setup with php 7.2 and mssql. had some issues, posted here also but in the end, client followed my proposal to ues latest version ( they had numerious applications running on old php that is why they wanted this one on php 7.2 also).
So after basic setup I realized laravel now don't use Mix, it uses Vite instead.
But I was not able to find reference where it shows the alternative for
mix.copyDirectory('/resoureces/images')
Is this normal in Vite? I have to create a folder in public directory and then place assets there??
@Niush NO, I didn't do this and it works. You can place your assets where you want.
Never referenced in source code (e.g. robots.txt)
Must retain the exact same file name (without hashing)
...or you simply don't want to have to import an asset first just to get its URL
There will be downside to it and can make Vite slower. The best solution at the end is to include these bootstrap assets directly in public directory, or use import declaration to pull css, js, modules wherever needed.