I create a new Laravel project on my computer with laravel new proyecto
. The installer downloads what it needs from the internet and builds the project, but it doesn't include the file webpack.min.js
for style builds. I have tried to install npm in the project with npm install
, but it does not appear either. The folder is created node_modules
, as expected, but the file webpack.min.js
is still missing. What is this about? How to solve it?
Indeed, laravel now uses vite as a compiler, but the documentation explains how to remove vite and use laravel mix.
https://github.com/laravel/vite-plugin/blob/main/UPGRADE.md#migrating-from-vite-to-laravel-mix