Skip to content

Instantly share code, notes, and snippets.

View vulieumang's full-sized avatar
📜

Vu vulieumang

📜
View GitHub Profile
@vulieumang
vulieumang / laravel-auto-refresh.md
Created October 13, 2021 15:25 — forked from vades/laravel-auto-refresh.md
Auto refresh after changes with Laravel Mix

Laravel auto refresh after changes

To achieve this you can use Laravel Mix

  1. Ensure that Node.js and NPM are installed: run node -v and npm -v.
  2. Install Laravel Mix npm install.
  3. Open webpack.mix.js and add mix.browserSync('127.0.0.1:8000');.
  4. Run php artisan serve.
  5. And the npm run watch.

Sources