-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Reduce the output of the webpack-dev-server #1834
Reduce the output of the webpack-dev-server #1834
Conversation
thanks 👍 |
As a developer, I wouldn't expect There even some issues asking for |
@jakeNiemiec Perhaps it depends on the loaders that are used. In our project we are using TypeScript and if I keep the webpack-dev-server at the defaults it will output 132 lines. A lot of it is things like:
That doesn't provide any useful information for me for normal development. If I have a specific problem with a loader it could be useful, but otherwise it is just a lot of text. The webpack-dev-server settings are injected in package/environments/development.js. It would be great if we could merge in This would probably work, but I'm not sure if it is the right way: package/environments/development.js overlay: devServer.overlay,
stats: {
entrypoints: false,
errorDetails: false,
modules: false,
moduleTrace: false,
...devServer.stats
},
watchOptions: devServer.watch_options |
@yvbeek I'm sorry, but I don't think this was a very good change. If you decide to increase the loaders in your own project and the default output becomes too verbose, that's something that is on you to deal with yourself. Having this off by default hides very important compilation errors that are a pain for people who aren't as familiar with Webpacker/Webpack to track down. |
I’m fine with reverting this change. Especially if it is causing issues for people who don’t use TypeScript in their projects. |
The webpack-dev-server normally outputs a lot of information about how the packages are resolved. During development you are often only interested in the packages that webpack creates after building and the names and sizes of those packages.
After this pull request has been merged, you can always increase logging again by adding the following lines to your
environment.js
:Or run webpack manually instead of the webpack-dev-server. But in my opinion the stats settings in this pull request are a better default.