diff --git a/webpack/webpack.d.ts b/webpack/webpack.d.ts index 5bf5050b82..be4c22328e 100644 --- a/webpack/webpack.d.ts +++ b/webpack/webpack.d.ts @@ -3,7 +3,11 @@ // Definitions by: Qubo // Definitions: https://github.com/borisyankov/DefinitelyTyped +/// + declare module "webpack" { + import * as UglifyJS from 'uglify-js'; + namespace webpack { interface Configuration { context?: string; @@ -426,7 +430,7 @@ declare module "webpack" { new(preferEntry: boolean): Plugin; } interface UglifyJsPluginStatic { - new(options?: any): Plugin; + new(options?: UglifyJS.MinifyOptions): Plugin; } interface CommonsChunkPluginStatic { new(chunkName: string, filenames?: string|string[]): Plugin;