So it has been a few years since I last used Laravel, which was around 8.x
but started working on a project and wanted to get back into laravel and now running docker and attempting to compile my assets as I used to with sail npm run dev, now this deletes all css and js files and never recreates them and apparently serve up a local server was not exactly what I was expecting.
if anyone can shine some light on this would be most appreciated.
yeah I was aware of that but thanks, still does not explain why it never actually compiles anything.
right now looking at just building it outside of the laravel environment instead just a shame.
after finding the laravel vite plugin github repo and reading the upgrade guide from mix to vite
(https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-laravel-mix-to-vite)
I found a lot more information than under the documentation but the command npm run build is working just fine no idea why the other one out of the box just breaks everything but not a big deal at this point as long as I can successfully run the build command.
i prefer to add a watch command, add a new line for vite build --watch and it works like the old mix watch, like build but runs whenever a source file changes