Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Cole Logan
Cole Logan
4,582 Points

webpack-dev-server may be out of date.

Guil's webpack-dev-server is at verstion: "webpack-dev-server": "^1.14.1", my webpack dev server is at version: "webpack-dev-server": "^2.5.1" he says that you need to go to the URL path: localhost:8080/webpack-dev-server to see the your changed/recompiled code whenever you revise and edit your files. When I change my code I don't need to go to the path, it reloads on the localhost:8080

Cole Logan
Cole Logan
4,582 Points

Can someone confirm that webpack-dev-server version 2.5.1 recompiles and reloads on localhost8080 whenever you change and save a file. thanks

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

If I remember correctly, the reason you go to the extended localhost:8080/webpack-dev-server URL is to see some visual guidance on the browser screen provided by webpack about the status of the local connection.

I don't think there's too much to worry about here. The shorter localhost:8080 URL should always work. There's bound to be differences between the versions you and Guil are using but it needb't be an issue. Look for any deprecation warnings in your console/terminal, you should, if you see any see one or 2 tips to work around it. :-)