Skip to content

Commit

Permalink
Fix hot module reloading and remove Browser Sync
Browse files Browse the repository at this point in the history
I'd just given up on getting Mix to work with HMR (specifically with
CORS since we're using servidor.local which points to Vagrant, and HMR
hosts the assets on localhost). Turns out instead of trying to set the
allowed origins header we need to disable the host check.*

We no longer have a need for browser-sync now either, hence its removal.

Also cleans up the npm commands. Don't need two of everything and we
don't need the full path to webpack[,-dev-server] either.

* See webpack/webpack-dev-server#1604 for details
  • Loading branch information
dshoreman committed Aug 7, 2019
1 parent acc2499 commit 4ebd301
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 2,007 deletions.
Loading

0 comments on commit 4ebd301

Please sign in to comment.