ghost-progress-webpack-plugin
Version:
A no side effects progress plugin for webpack.
62 lines (45 loc) • 2.08 kB
Markdown
# ghost-progress-webpack-plugin
[](https://www.npmjs.com/package/ghost-progress-webpack-plugin)
[](https://www.npmjs.com/package/ghost-progress-webpack-plugin)
A no side effects progress plugin for webpack.
Languages: [English](https://github.com/ZSkycat/ghost-progress-webpack-plugin#readme) | [中文](https://github.com/ZSkycat/ghost-progress-webpack-plugin/blob/master/README.zh.md)
## 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](https://github.com/dominique-mueller/simple-progress-webpack-plugin))

## Get Started
#### Installation
```
npm install --save-dev ghost-progress-webpack-plugin
```
#### Usage
```javascript
// 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'`<br>
**Default:** `'compact'`<br>
Set the output format.
`'compact'`

`'detailed'`

`'bar'`

### options.stream
**Type:** `NodeJS.WriteStream`<br>
**Default:** `process.stderr`<br>
Set the write stream used by the output.
## License
[MIT](https://github.com/ZSkycat/ghost-progress-webpack-plugin/blob/master/LICENSE.txt)