mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
- definition file - tests https://github.com/clessg/progress-bar-webpack-plugin#readme https://github.com/clessg/progress-bar-webpack-plugin#options Thanks!
25 lines
670 B
TypeScript
25 lines
670 B
TypeScript
import ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
|
import webpack = require('webpack');
|
|
|
|
const configuration: webpack.Configuration = {
|
|
plugins: [
|
|
new ProgressBarPlugin({
|
|
total: 10,
|
|
format: ` build [:bar] ... (:elapsed seconds)`,
|
|
clear: false,
|
|
callback: () => {
|
|
console.log('done');
|
|
},
|
|
complete: '=',
|
|
curr: 2,
|
|
incomplete: ' ',
|
|
width: 20,
|
|
customSummary: summary => {
|
|
console.log(summary);
|
|
// rest of the code ...
|
|
},
|
|
}),
|
|
],
|
|
};
|
|
webpack(configuration);
|