mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
[webpack]: Added types for SingleEntryPlugin.
See https://github.com/webpack/webpack/blob/6f722436697ffa946d4c5c69d25e6cbba4aa0796/lib/SingleEntryPlugin.js
This commit is contained in:
Vendored
+4
@@ -1452,6 +1452,10 @@ declare namespace webpack {
|
||||
constructor(paths: Array<string | RegExp>);
|
||||
}
|
||||
|
||||
class SingleEntryPlugin extends Plugin {
|
||||
constructor(context: string, entry: string, name: string);
|
||||
}
|
||||
|
||||
namespace optimize {
|
||||
/** @deprecated use config.optimization.concatenateModules */
|
||||
class ModuleConcatenationPlugin extends Plugin { }
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user