Webpack: Reformat Dll(Reference)Plugin params

This commit is contained in:
Mike Hill
2017-03-20 11:06:59 -05:00
parent e4566cbfc1
commit bc0ac9ada3
+27 -30
View File
@@ -695,22 +695,22 @@ declare namespace webpack {
namespace DllPlugin {
interface Options {
/**
* The absolute path to the manifest json file (output).
*/
path: string,
/**
* The name of the exposed DLL function (keep consistent with `output.library`).
*/
name: string,
/**
* The context of requests in the manifest file.
*
* Defaults to the webpack context.
*/
context?: string
context?: string;
/**
* The name of the exposed DLL function (keep consistent with `output.library`).
*/
name: string;
/**
* The absolute path to the manifest json file (output).
*/
path: string;
}
}
@@ -720,25 +720,24 @@ declare namespace webpack {
namespace DllReferencePlugin {
interface Options {
/**
* The mappings from the request to module ID.
*
* Defaults to `manifest.content`.
*/
content?: any;
/**
* The context of requests in the manifest (or content property).
*
* This is an <b>absolute path</b>.
*/
context: string,
context: string;
/**
* An object containing `content` and `name`.
*/
manifest: {
content: string,
name: string
},
/**
* The prefix which is used for accessing the content of the DLL.
*/
scope?: string,
manifest: { content: string, name: string };
/**
* The name where the DLL is exposed.
@@ -747,7 +746,12 @@ declare namespace webpack {
*
* See also `externals`.
*/
name?: string,
name?: string;
/**
* The prefix which is used for accessing the content of the DLL.
*/
scope?: string;
/**
* The type how the DLL is exposed.
@@ -756,14 +760,7 @@ declare namespace webpack {
*
* See also `externals`.
*/
sourceType?: string,
/**
* The mappings from the request to module ID.
*
* Defaults to `manifest.content`.
*/
content?: any
sourceType?: string;
}
}