问题
I downloaded a fresh copy of the Aurelia Navigation Skeleton github repo
.
I execute the npm run server:dev:hot
, which is mapped to cross-env NODE_ENV=development npm run webpack-dev-server -- --inline --progress --profile --watch --hot
.
The webpack-server starts fine, I see in the console [HMR] is waiting for WDS signal. Everything is fine until I make a change in in a js file to trigger HMR refresh. Then I see an error/warning in the console.
I haven't modified anything in the code from the repo.
回答1:
Well, it turns out that this is expected. Aurelia doesn't have HMR enabled yet.
https://github.com/aurelia/skeleton-navigation/issues/629
http://blog.aurelia.io/2016/12/08/big-aurelia-release-update/
Can't wait for the update.
来源:https://stackoverflow.com/questions/41307574/aurelia-running-webpack-dev-server-hot-throws-error-on-app-hot-update-cann