Comments (11)
My config:
// It suppress error shown in console, so it has to be set to false.
quiet: false,
// It suppress everything except error, so it has to be set to false as well
// to see success build.
noInfo: false,
stats: {
// Config for minimal console.log mess.
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false
}
from webpack-dev-server.
Sorry for commenting on an old thread.
If others end up here looking for a way to show the startup url on webpack-dev-server initialization (e.g. localhost:3000
) but not have a mess in the console this config worked for me:
stats: {
all: false,
// Show the url we're serving at
wds: true,
// Config for minimal console.log mess.
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false,
},
The wds
key is not documented so far as I can tell.
from webpack-dev-server.
https://webpack.js.org/configuration/stats/#stats
from webpack-dev-server.
Yep. At the current state of webpack it's time to define different log levels... but this is an issue of webpack (webpack/webpack#476).
Close this one?
from webpack-dev-server.
The example config @steida gave is very helpful. That seems more or less the requested behavior (in lieu of something like logging levels). Perhaps this is just a documentation bug to explain the stats
options better?
from webpack-dev-server.
@maspwr Feel free to copy/past from or into https://github.com/steida/este
from webpack-dev-server.
@steida Very cool. Thanks for the link!
from webpack-dev-server.
Just verifying @steida, what you provided isn't supposed to work today right? You were just suggesting that as an API. I just tried it and it didn't work for me, so that's why I'm just checking that I'm not missing anything...
from webpack-dev-server.
@steida Thank you, this is exactly what I was looking for.
@kentcdodds The stats
config definitely works for me. My frontend scaffold is a lightweight example (webpack version 1.10.1).
from webpack-dev-server.
I think using the stats config is the correct solution, it worked for me and there are lots of options to choose what to show or not. Thank you very much @steida. Closing this issue.
from webpack-dev-server.
Where is the stats
config option documented? If it's not documented, is there in issue for the missing documentation?
from webpack-dev-server.
Related Issues (20)
- Webpack dev server HRM not update vuejs file after compile error HOT 3
- After the latest webpack-dev-server upgrade, not able to start the server HOT 3
- devServer.static can't be an array. HOT 2
- devServer proxy config outputs deprecation warning in http-proxy-middleware
- Error while running example general/config-array HOT 1
- Invalid options object: options has an unknown property 'running' (webpack-cli v4.10.0) HOT 7
- Consider editing repository setings to remove "Packages" section HOT 1
- Configuring dist/main.js to be included when dev server starts HOT 3
- Types of version 5.0.0 still allow `proxy` to be an object
- The server log is being spammed HOT 2
- K
- The memory usage during project runtime after upgrade is very high HOT 2
- Additional Assets emitted via `processAssets` hook do not invalidate the build HOT 5
- Web Dev Server Inaccessible from Local Network Devices Despite Correct Configuration HOT 2
- Add visual progress indicator HOT 3
- Upgrade http-proxy-middleware package to address CVE HOT 1
- Upgrade ws package to address CVE HOT 5
- ModuleNotFoundError with hard crash on file rename/move/delete HOT 4
- Please support honojs HOT 13
- Make webpack server listen on both locahost addresses HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-dev-server.