The updated scripts setup moves the bundling from gulp and into Webpack. In order to bundle on the fly we add the webpack-dev-middleware to browsersync as well as webpack-hot-middleware in order to support HMR.
There is a minor bug with this setup in which it will disconnect (and won't reconnect) if you reference an undefined variable. I'm not totally sure what his happens, but it seems to be browsersync giving up on things.
Makes some updates to the scripts side of things
gulp-util
package (#172)The updated scripts setup moves the bundling from gulp and into Webpack. In order to bundle on the fly we add the
webpack-dev-middleware
to browsersync as well aswebpack-hot-middleware
in order to support HMR.There is a minor bug with this setup in which it will disconnect (and won't reconnect) if you reference an undefined variable. I'm not totally sure what his happens, but it seems to be browsersync giving up on things.