create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

webpack dev server serves slow through

Open SamMade opened this issue 9 years ago • 1 comments

sorry this isn't a bug but wondering if others have experienced this:

with OS X and docker (container with only node:boron) running a vanilla version of create-react-app through a shared folder (and adding a .env file to change CHOKIDAR_USEPOLLING=true)...

i'm getting the hot reload and all the goodiness but through the browser (any one) it takes 5-6 seconds for bundle.js to be loaded. it's like I have throttling on but i don't.

here's a snapshot of my network tab in devtools

screen shot 2017-05-05 at 8 12 12 pm

If i run everything locally, things are lightning fast as it should be. anyone have an idea?

SamMade avatar May 06 '17 00:05 SamMade

This is pretty expected because you had to switch to polling mode (with CHOKIDAR_USEPOLLING), which is inherently slower than receiving events. There's really nothing that can be done, sorry!

Timer avatar May 06 '17 01:05 Timer