Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any advantage to use webpack-watcher over webpack-dev-server? #179

Closed
ytbryan opened this issue Mar 22, 2017 · 1 comment
Closed

Comments

@ytbryan
Copy link
Contributor

ytbryan commented Mar 22, 2017

Is there any advantage to use webpack-watcher over webpack-dev-server?

Because it seems like webpack-dev-server uses webpack's watch mode by default? https://webpack.github.io/docs/tutorials/getting-started/#watch-mode

@gauravtiwari
Copy link
Member

@ytbryan Both are different - https://github.com/rails/webpacker/blob/master/lib/install/bin/webpack-dev-server.tt
https://github.com/rails/webpacker/blob/master/lib/install/bin/webpack-watcher.tt

webpack-dev-server uses https://webpack.js.org/configuration/dev-server/ whereas the watch mode is essentially webpack binary running in watch mode so, it's watching for changes and then compiling on demand.

You can read more about use cases of webpack-dev-server in that link. It serves from memory so, usually faster than any other build modes webpack provides.

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

No branches or pull requests

2 participants