Skip to content

Use webpack-dev-server instead of http-server - #2542

Merged
dbkr merged 1 commit into
developfrom
rav/webpack-dev-server
Nov 3, 2016
Merged

dbkr merged 1 commit into
developfrom
rav/webpack-dev-server

Conversation

@richvdh

@richvdh richvdh commented Nov 3, 2016

Copy link
Copy Markdown
Member

Advantages:

  • blocks while a rebuild is in progress so you're less likely to reload the old version

  • serves from memory rather than disk, so we no longer need to turn off the cachebuster to avoid filling the disk with bundles. Empirically, seems to last a plausible amount of time without OOMing; there's no real reason to believe it would use any more memory than webpack itself.

  • That in turn means we no longer need the hack to stop chrome caching old sourcemaps (because the sourcemap now has a cachebuster in its name).

  • one fewer process for parallelshell to (fail to) manage.

  • in future, we could consider the fancy hot-reload functionality.

Advantages:
 * blocks while a rebuild is in progress so you're less likely to reload the
   old version

 * serves from memory rather than disk, so we no longer need to turn off the
   cachebuster to avoid filling the disk with bundles. Empirically, seems to
   last a plausible amount of time without OOMing; there's no real reason to
   believe it would use any more memory than webpack itself.

 * That in turn means we no longer need the hack to stop chrome caching old
   sourcemaps (because the sourcemap now has a cachebuster in its name).

 * one fewer process for parallelshell to (fail to) manage.

 * in future, we could consider the fancy hot-reload functionality.
@richvdh
richvdh force-pushed the rav/webpack-dev-server branch from 96291ee to ff46258 Compare November 3, 2016 15:09
@dbkr
dbkr merged commit a6c794c into develop Nov 3, 2016
@richvdh
richvdh deleted the rav/webpack-dev-server branch November 30, 2016 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants