ghost-progress-webpack-plugin
v0.1.0
Published
A no side effects progress plugin for webpack.
Downloads
9,215
Readme
ghost-progress-webpack-plugin
A no side effects progress plugin for webpack.
Feature
- Will not affect output from other tools
- Will not leave ugly output
- Not suitable for use in a CI environment (can use simple-progress-webpack-plugin)
Get Started
Installation
npm install --save-dev ghost-progress-webpack-plugin
Usage
// import
const GhostProgressWebpackPlugin = require('ghost-progress-webpack-plugin').GhostProgressWebpackPlugin;
// instantiate it in the webpack plugins configuration
plugins: [
new GhostProgressWebpackPlugin()
]
API
new GhostProgressWebpackPlugin(format: string);
new GhostProgressWebpackPlugin(options: object);
options.format
Type: 'compact' | 'detailed' | 'bar'
Default: 'compact'
Set the output format.
'compact'
'detailed'
'bar'
options.stream
Type: NodeJS.WriteStream
Default: process.stderr
Set the write stream used by the output.