onedesign / generator-one-base

A foundation for One Design Company projects on the web.
Other
1 stars 1 forks source link

Feature/update scripts #173

Open brianjhanson opened 6 years ago

brianjhanson commented 6 years ago

Makes some updates to the scripts side of things

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.