- Start PHP development server or (
artisan serve
) along sidewebpack-dev-server
in single command - Serve static files inside
storage/app/public
without creating symlink topublic
directory
- Use node
child_process
to spawnartisan serve
command while starting webpack-dev-server - Use browser-sync's
staticServe
options
Simply run
$ npm run hot
and then visi http://localhost:3000 we'll see our development server is running seemlessly.
- Laravel development server running at port 8000
- BrowserSync proxy server running at port 3000
- Webpack Dev Server for Hot Module Replacement running at port 8080