diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 469fd67076..000175492a 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -1452,6 +1452,10 @@ declare namespace webpack { constructor(paths: Array); } + class SingleEntryPlugin extends Plugin { + constructor(context: string, entry: string, name: string); + } + namespace optimize { /** @deprecated use config.optimization.concatenateModules */ class ModuleConcatenationPlugin extends Plugin { } diff --git a/types/webpack/webpack-tests.ts b/types/webpack/webpack-tests.ts index 49b827d934..fb0a083a29 100644 --- a/types/webpack/webpack-tests.ts +++ b/types/webpack/webpack-tests.ts @@ -446,6 +446,11 @@ plugin = new webpack.HashedModuleIdsPlugin({ hashDigest: 'hex', hashDigestLength: 20 }); +plugin = new webpack.SingleEntryPlugin( + '/home', + './main.js', + 'main' +); // // http://webpack.github.io/docs/node.js-api.html