$ npm install webpack-nicelog --save-dev
// webpack.config.js
const WebpackNiceLog = require('webpack-nicelog');
module.exports = {
// ...
plugins: [
new WebpackNiceLog()
]
}
- Default:
webpack
Display name
- Default: false
Do not show build time e.g: Build finished in 1234 ms
- Default: false
Clear screen after every compilation.
- Default:
green
Display color (can be HEX like #xxyyzz
or a web color like green
).
- Default:
process.stderr
Output stream.
- Default: Auto enabled on CI, non-TTY and test environments
Hide progress bar and only show Compiling/Compiled messages.
- Type:
Function(stats)
A function that will be called when all builds are finished (no errors).
MIT © Endilie Yacop Sucipto