Added ProgressPlugin definition (#14897)

This commit is contained in:
Anton Kandybo 2017-03-10 09:22:10 +02:00 committed by Mohamed Hegazy
parent f630485bb1
commit 62c57736f1
2 changed files with 5 additions and 0 deletions

4
webpack/index.d.ts vendored
View File

@ -747,6 +747,10 @@ declare namespace webpack {
constructor(request: any);
}
class ProgressPlugin extends Plugin {
constructor(options?: (percentage: number, msg: string) => void);
}
class ProvidePlugin extends Plugin {
constructor(definitions: {[key: string]: any});
}

View File

@ -400,6 +400,7 @@ plugin = new webpack.WatchIgnorePlugin(paths);
plugin = new webpack.LoaderOptionsPlugin({
debug: true
});
plugin = new webpack.ProgressPlugin((percent: number, message: string) => {});
//
// http://webpack.github.io/docs/node.js-api.html