If you don't need it, just don't run npm install or just delete the node_modules directory.
Completely stripping out Vite from a Laravel API only project
Hi,
I am using Laravel 11 as an API only project. I do not render any front-end web pages, so I do not need any front-end bundler. Vite installing takes time, node_modules, takes up a port and distracts fellow devs from the impression that it is used while it is in the project. But most importantly, I don't want services installed that are not used.
I only use .blade.php templates to render HTML emails.
Is it possible to remove Vite entirely from a Laravel 11 project, and operate an API Laravel only project without any front-end bundler, or is a bundler tightly integrated into Laravel?
I can't seem to find any sources with a similar request as mine.
Please or to participate in this conversation.