Skip to content

endiliey/webpack-nicelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack-NiceLog

preview GIF

Install

$ npm install webpack-nicelog --save-dev

Example Usage

// webpack.config.js
const WebpackNiceLog = require('webpack-nicelog');

module.exports = {
  // ...
  plugins: [
    new WebpackNiceLog()
  ]
}

API

WebpackNiceLog(options)

Options

name

  • Default: webpack

Display name

skipBuildTime

  • Default: false

Do not show build time e.g: Build finished in 1234 ms

clearScreen

  • Default: false

Clear screen after every compilation.

color

  • Default: green

Display color (can be HEX like #xxyyzz or a web color like green).

stream

  • Default: process.stderr

Output stream.

minimal

  • Default: Auto enabled on CI, non-TTY and test environments

Hide progress bar and only show Compiling/Compiled messages.

onDone

  • Type: Function(stats)

A function that will be called when all builds are finished (no errors).

License

MIT © Endilie Yacop Sucipto