presstube / turkey

A turnkey starting point for JS projects
0 stars 1 forks source link

Use Webpack Dev Server's Automatic Refresh feature. #6

Closed jasonkuhrt closed 8 years ago

jasonkuhrt commented 8 years ago

This solution is an alternative to #5. It leverages core features of the Webpack system. Learn more about it here: https://webpack.github.io/docs/webpack-dev-server.html.

The advantages of this solution are:

presstube commented 8 years ago

Hell yeah! Thanks J, much better

jasonkuhrt commented 8 years ago

👍 My pleasure! Thanks for putting pressure to get this feature in. The weight to power ratio is excellent here regardless of if this is "hot" or not. Worth noting: in my experience I've come to see non-hot automatic refresh as a liability rather than a feature. However, we are far and away from hitting that point (e.g. blowing away nested app state) so rock on!