javascript-development-environment icon indicating copy to clipboard operation
javascript-development-environment copied to clipboard

Any chance of a Webpack 2 version?

Open robgallen opened this issue 8 years ago • 4 comments
trafficstars

Really enjoyed the course - however I'm having serious difficulties upgrading the starter kit to use Webpack 2.2. I've read through the migration and tried tweaking the babel configuration, but I'm not having much luck so far.

Any chance of creating a branch with an upgraded webpack.config file (and associated amends)?

robgallen avatar Feb 10 '17 17:02 robgallen

Edit: I show how to upgrade to the latest versions here: #7

coryhouse avatar Feb 10 '17 17:02 coryhouse

I actually did look over the changes you made in react-slingshot and read over the webpack migration document. I applied those changes to a local version of javascript-development-environment. I got everything to work except live reload in the browser. I have to reload the browser page manually. I use a Mac and Ubuntu, if that matters, and get the same result on both. Any advice?

jcscott2015 avatar Oct 30 '17 21:10 jcscott2015

Have you tried the latest PR here: https://github.com/coryhouse/javascript-development-environment/pull/7

coryhouse avatar Oct 30 '17 22:10 coryhouse

About 95% of what's in PR 7 I've already done. (I've added some comments to PR 7, BTW.)

Webpack compiles everything just fine, and it recompiles everything on file saves. The browser just doesn't automatically update. Christoph von Gellhorn's https://github.com/cvgellhorn/webpack-boilerplate updates the browser (live reload), but I haven't examined his differences yet. He is using cross-env and webpack-dev-server, not webpack-dev-middleware with express. (webpack-dev-server only loads static pages, though.)

starter-configs.zip

jcscott2015 avatar Oct 31 '17 06:10 jcscott2015