Merge pull request #30615 from loveky/master

Update definition for webpack-chain to match version 5.0
This commit is contained in:
Mine Starks 2018-11-28 12:47:47 -08:00 committed by GitHub
commit 4f1b2db0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for webpack-chain 4.8
// Type definitions for webpack-chain 5.0
// Project: https://github.com/mozilla-neutrino/webpack-chain
// Definitions by: Eirikur Nilsson <https://github.com/eirikurn>, Paul Sachs <https://github.com/psachs21>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -209,7 +209,7 @@ declare namespace Config {
flagIncludedChunks(value: boolean): this;
mergeDuplicateChunks(value: boolean): this;
minimize(value: boolean): this;
minimizer(value: webpack.Plugin[]): this;
minimizer(name: string): Plugin<this>;
namedChunks(value: boolean): this;
namedModules(value: boolean): this;
nodeEnv(value: boolean | string): this;

View File

@ -173,7 +173,9 @@ config
.flagIncludedChunks(true)
.mergeDuplicateChunks(true)
.minimize(true)
.minimizer([])
.minimizer('foo')
.use(webpack.DefinePlugin)
.end()
.namedChunks(true)
.namedModules(true)
.nodeEnv(true)