I have a similar setup, wherein I load different main entry files for the admin dashboard and the main app.
npm run dev
npm run admin-dev
npm run watch
npm run admin-watch
npm run watch-poll
npm run admin-watch-poll
npm run hot
npm run admin-hot
npm run production
npm run admin-production
- run :
php artisan serve
- site url : http://127.0.0.1:8000/
- admin url : http://127.0.0.1:8000/admin
- https://stackoverflow.com/questions/62982989/how-to-mix-multiple-entry-points-and-watch-at-same-time-for-laravel-mix
- https://stackoverflow.com/questions/45046696/laravel-mix-multiple-entry-points-generates-one-manifest-js
- https://gist.github.com/torian257x/89d4017e33dc6cd55cb20f6af98b910c
- https://www.compulsivecoders.com/tech/how-to-build-multiple-vendors-using-laravel-mix/