2016-09-09 00:40:54 +08:00
{
2016-09-19 06:54:35 +08:00
"definitions" : {
2018-09-21 18:08:54 +08:00
"ArrayOfStringOrStringArrayValues" : {
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "string or array of strings" ,
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
2016-09-20 18:36:08 +08:00
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-20 18:36:08 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A non-empty string" ,
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
}
2016-09-19 06:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
]
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"ArrayOfStringValues" : {
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A non-empty string" ,
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
}
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"Entry" : {
2018-09-21 18:09:56 +08:00
"anyOf" : [
2016-09-19 06:54:35 +08:00
{
2018-09-21 18:09:56 +08:00
"$ref" : "#/definitions/EntryDynamic"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:09:56 +08:00
{
"$ref" : "#/definitions/EntryStatic"
}
]
} ,
2020-02-03 22:46:14 +08:00
"EntryDescription" : {
"description" : "An object with entry point description." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2020-02-07 18:00:25 +08:00
"filename" : {
2020-02-10 20:04:28 +08:00
"description" : "The filename of the entrypoint as relative path inside the `output.path` directory." ,
2020-02-07 18:00:25 +08:00
"type" : "string" ,
"absolutePath" : false
} ,
2020-02-03 22:46:14 +08:00
"import" : {
2020-02-05 04:21:42 +08:00
"description" : "The module(s) loaded at startup." ,
2020-02-03 22:46:14 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/EntryItem"
}
]
}
} ,
"required" : [ "import" ]
} ,
2018-09-21 18:09:56 +08:00
"EntryDynamic" : {
"description" : "A Function returning an entry object, an entry string, an entry array or a promise to these things." ,
"instanceof" : "Function" ,
"tsType" : "(() => EntryStatic | Promise<EntryStatic>)"
} ,
"EntryItem" : {
"oneOf" : [
2016-09-19 06:54:35 +08:00
{
2020-02-05 04:21:42 +08:00
"description" : "The string is resolved to a module which is loaded upon startup." ,
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
2016-09-19 06:54:35 +08:00
} ,
{
2020-02-05 04:21:42 +08:00
"description" : "All modules are loaded upon startup. The last one is exported." ,
2017-11-16 15:59:22 +08:00
"anyOf" : [
2016-09-19 06:54:35 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/NonEmptyArrayOfUniqueStringValues"
2016-09-19 06:54:35 +08:00
}
2017-11-16 15:59:22 +08:00
]
2018-09-21 18:09:56 +08:00
}
]
} ,
"EntryObject" : {
"description" : "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array." ,
"type" : "object" ,
"additionalProperties" : {
"description" : "An entry point with name" ,
"oneOf" : [
{
2020-02-05 04:21:42 +08:00
"description" : "The module(s) loaded at startup." ,
2018-09-21 18:09:56 +08:00
"anyOf" : [
{
2020-02-05 04:21:42 +08:00
"$ref" : "#/definitions/EntryItem"
2018-09-21 18:09:56 +08:00
}
]
} ,
{
2020-02-03 22:46:14 +08:00
"description" : "An object with entry point description." ,
2018-09-21 18:09:56 +08:00
"anyOf" : [
{
2020-02-03 22:46:14 +08:00
"$ref" : "#/definitions/EntryDescription"
2018-09-21 18:09:56 +08:00
}
]
}
]
} ,
"minProperties" : 1
} ,
"EntryStatic" : {
"oneOf" : [
{
"$ref" : "#/definitions/EntryObject"
2017-01-09 15:31:49 +08:00
} ,
2020-02-05 04:21:42 +08:00
{
"$ref" : "#/definitions/EntryUnnamed"
}
]
} ,
"EntryUnnamed" : {
"description" : "An entry point without name." ,
"anyOf" : [
2017-01-09 15:31:49 +08:00
{
2018-09-21 18:09:56 +08:00
"$ref" : "#/definitions/EntryItem"
2016-09-19 06:54:35 +08:00
}
]
} ,
2019-06-04 17:26:04 +08:00
"Experiments" : {
"description" : "Enables/Disables experiments (experiemental features with relax SemVer compatibility)" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2019-07-16 19:16:27 +08:00
"asset" : {
"description" : "Allow module type 'asset' to generate assets" ,
"type" : "boolean"
} ,
2019-06-05 19:25:15 +08:00
"asyncWebAssembly" : {
"description" : "Support WebAssembly as asynchronous EcmaScript Module" ,
"type" : "boolean"
} ,
"importAsync" : {
"description" : "Allow 'import/export' syntax to import async modules" ,
"type" : "boolean"
} ,
"importAwait" : {
"description" : "Allow 'import/export await' syntax to import async modules" ,
"type" : "boolean"
} ,
2019-06-04 17:26:04 +08:00
"mjs" : {
"description" : "Support .mjs files as way to define strict ESM file (node.js)" ,
"type" : "boolean"
2019-06-05 19:25:15 +08:00
} ,
2019-10-09 04:29:46 +08:00
"outputModule" : {
"description" : "Allow outputing javascript files as module source type" ,
"type" : "boolean"
} ,
2019-06-05 19:25:15 +08:00
"syncWebAssembly" : {
"description" : "Support WebAssembly as synchronous EcmaScript Module (outdated)" ,
"type" : "boolean"
} ,
"topLevelAwait" : {
"description" : "Allow using top-level-await in EcmaScript Modules" ,
"type" : "boolean"
2019-06-04 17:26:04 +08:00
}
}
} ,
2018-09-21 18:08:54 +08:00
"ExternalItem" : {
2016-09-19 06:54:35 +08:00
"anyOf" : [
{
"description" : "An exact matched dependency becomes external. The same string is used as external dependency." ,
"type" : "string"
} ,
{
2018-09-21 17:54:35 +08:00
"description" : "If an dependency matches exactly a property of the object, the property value is used as dependency." ,
"type" : "object" ,
2016-09-19 06:54:35 +08:00
"additionalProperties" : {
2017-11-16 15:59:22 +08:00
"description" : "The dependency used for the external" ,
2016-11-04 07:22:12 +08:00
"anyOf" : [
{
"type" : "string"
} ,
{
"type" : "object"
2016-11-19 23:47:40 +08:00
} ,
2018-09-17 21:19:04 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2018-09-17 21:19:04 +08:00
} ,
2016-11-19 23:47:40 +08:00
{
"type" : "boolean"
2016-11-04 07:22:12 +08:00
}
]
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
{
"description" : "Every matched dependency becomes external." ,
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2018-09-21 17:56:04 +08:00
}
]
} ,
2018-09-21 18:08:54 +08:00
"Externals" : {
2018-09-21 17:56:04 +08:00
"anyOf" : [
2018-09-21 18:09:56 +08:00
{
"description" : "`function(context, request, callback(err, result))` The function is called on each dependency." ,
"instanceof" : "Function" ,
"tsType" : "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)"
} ,
2018-09-21 17:56:04 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ExternalItem"
2016-09-19 06:54:35 +08:00
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "External configuration" ,
"anyOf" : [
2018-09-21 18:09:56 +08:00
{
"description" : "`function(context, request, callback(err, result))` The function is called on each dependency." ,
"instanceof" : "Function" ,
"tsType" : "((context: string, request: string, callback: (err?: Error, result?: string) => void) => void)"
} ,
2017-11-16 15:59:22 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ExternalItem"
2017-11-16 15:59:22 +08:00
}
]
2018-09-21 17:54:35 +08:00
}
}
]
} ,
2018-10-09 20:30:59 +08:00
"FileCacheOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2019-08-09 20:46:42 +08:00
"buildDependencies" : {
"description" : "Dependencies the build depends on (in multiple categories, default categories: 'defaultWebpack')" ,
"type" : "object" ,
"additionalProperties" : {
"description" : "List of dependencies the build depends on" ,
"type" : "array" ,
"items" : {
"description" : "Request to a dependency (resolved as directory relative to the context directory)" ,
"type" : "string" ,
"minLength" : 1
}
}
} ,
2018-10-09 20:30:59 +08:00
"cacheDirectory" : {
"description" : "Base directory for the cache (defaults to node_modules/.cache/webpack)." ,
"type" : "string" ,
"absolutePath" : true
} ,
2019-01-26 02:21:45 +08:00
"cacheLocation" : {
"description" : "Locations for the cache (defaults to cacheDirectory / name)." ,
"type" : "string" ,
"absolutePath" : true
} ,
2018-10-09 20:30:59 +08:00
"hashAlgorithm" : {
"description" : "Algorithm used for generation the hash (see node.js crypto package)" ,
"type" : "string"
} ,
2019-01-19 18:47:53 +08:00
"idleTimeout" : {
2019-01-19 19:07:26 +08:00
"description" : "Time in ms after which idle period the cache storing should happen (only for store: 'pack' or 'idle')" ,
"type" : "number" ,
"minimum" : 0
} ,
"idleTimeoutForInitialStore" : {
"description" : "Time in ms after which idle period the initial cache storing should happen (only for store: 'pack' or 'idle')" ,
2019-01-19 18:47:53 +08:00
"type" : "number" ,
"minimum" : 0
} ,
2019-08-16 17:55:10 +08:00
"immutablePaths" : {
"description" : "List of paths that are managed by a package manager and contain a version or hash in it's path so all files are immutable" ,
"type" : "array" ,
"items" : {
"description" : "A path to a immutable directory (usually a package manager cache directory)" ,
"type" : "string" ,
"absolutePath" : true ,
"minLength" : 1
}
} ,
2019-08-13 04:59:09 +08:00
"managedPaths" : {
"description" : "List of paths that are managed by a package manager and can be trusted to not being modified otherwise" ,
"type" : "array" ,
"items" : {
"description" : "A path to a managed directory (usually a node_modules directory)" ,
"type" : "string" ,
"absolutePath" : true ,
"minLength" : 1
}
} ,
2018-10-09 20:30:59 +08:00
"name" : {
"description" : "Name for the cache. Different names will lead to different coexisting caches." ,
"type" : "string"
} ,
"store" : {
2019-10-18 21:23:02 +08:00
"description" : "When to store data to the filesystem. (pack: Store data when compiler is idle in a single file)" ,
"enum" : [ "pack" ]
2018-10-09 20:30:59 +08:00
} ,
"type" : {
"description" : "Filesystem caching" ,
"enum" : [ "filesystem" ]
} ,
"version" : {
"description" : "Version of the cache data. Different versions won't allow to reuse the cache and override existing content. Update the version when config changed in a way which doesn't allow to reuse cache. This will invalidate the cache." ,
"type" : "string"
}
} ,
"required" : [ "type" ]
} ,
2018-09-21 18:08:54 +08:00
"FilterItemTypes" : {
2018-09-21 17:54:35 +08:00
"anyOf" : [
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2018-09-21 17:54:35 +08:00
} ,
{
"type" : "string"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2019-07-22 14:23:40 +08:00
"tsType" : "((value: string) => boolean)"
2018-09-21 17:54:35 +08:00
}
]
} ,
2018-09-21 18:08:54 +08:00
"FilterTypes" : {
2018-09-21 17:54:35 +08:00
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/FilterItemTypes"
2018-09-21 17:54:35 +08:00
} ,
{
"type" : "array" ,
"items" : {
"description" : "Rule to filter" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/FilterItemTypes"
2018-09-21 17:54:35 +08:00
}
]
}
2016-09-19 06:54:35 +08:00
}
2017-11-16 15:59:22 +08:00
]
2016-09-19 06:54:35 +08:00
} ,
2019-10-02 22:59:27 +08:00
"LibraryCustomUmdCommentObject" : {
"description" : "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"amd" : {
"description" : "Set comment for `amd` section in UMD" ,
"type" : "string"
} ,
"commonjs" : {
"description" : "Set comment for `commonjs` (exports) section in UMD" ,
"type" : "string"
} ,
"commonjs2" : {
"description" : "Set comment for `commonjs2` (module.exports) section in UMD" ,
"type" : "string"
} ,
"root" : {
"description" : "Set comment for `root` (global variable) section in UMD" ,
"type" : "string"
}
}
} ,
2018-09-21 18:09:56 +08:00
"LibraryCustomUmdObject" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"amd" : {
"description" : "Name of the exposed AMD library in the UMD" ,
"type" : "string"
} ,
"commonjs" : {
"description" : "Name of the exposed commonjs export in the UMD" ,
"type" : "string"
} ,
"root" : {
"description" : "Name of the property exposed globally by a UMD library" ,
"anyOf" : [
{
"type" : "string"
} ,
{
"$ref" : "#/definitions/ArrayOfStringValues"
}
]
}
}
} ,
2018-10-09 20:30:59 +08:00
"MemoryCacheOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2019-08-16 17:55:10 +08:00
"immutablePaths" : {
"description" : "List of paths that are managed by a package manager and contain a version or hash in it's path so all files are immutable" ,
"type" : "array" ,
"items" : {
"description" : "A path to a immutable directory (usually a package manager cache directory)" ,
"type" : "string" ,
"absolutePath" : true ,
"minLength" : 1
}
} ,
2019-08-13 04:59:09 +08:00
"managedPaths" : {
"description" : "List of paths that are managed by a package manager and can be trusted to not being modified otherwise" ,
"type" : "array" ,
"items" : {
"description" : "A path to a managed directory (usually a node_modules directory)" ,
"type" : "string" ,
"absolutePath" : true ,
"minLength" : 1
}
} ,
2018-10-09 20:30:59 +08:00
"type" : {
"description" : "In memory caching" ,
"enum" : [ "memory" ]
}
} ,
"required" : [ "type" ]
} ,
2018-09-21 18:08:54 +08:00
"ModuleOptions" : {
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-19 06:54:35 +08:00
"additionalProperties" : false ,
"properties" : {
2018-09-21 17:54:35 +08:00
"defaultRules" : {
"description" : "An array of rules applied by default for modules." ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetRules"
2018-09-21 17:54:35 +08:00
}
]
} ,
2016-09-20 18:36:08 +08:00
"exprContextCritical" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable warnings for full dynamic dependencies" ,
2016-09-20 18:36:08 +08:00
"type" : "boolean"
} ,
"exprContextRecursive" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable recursive directory lookup for full dynamic dependencies" ,
2016-09-20 18:36:08 +08:00
"type" : "boolean"
} ,
"exprContextRegExp" : {
2017-11-16 15:59:22 +08:00
"description" : "Sets the default regular expression for full dynamic dependencies" ,
2016-11-04 07:22:12 +08:00
"anyOf" : [
{
"type" : "boolean"
} ,
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2016-11-04 07:22:12 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"exprContextRequest" : {
2017-11-16 15:59:22 +08:00
"description" : "Set the default request for full dynamic dependencies" ,
2016-09-20 18:36:08 +08:00
"type" : "string"
2016-09-19 06:54:35 +08:00
} ,
"noParse" : {
"description" : "Don't parse files matching. It's matched against the full resolved request." ,
2016-09-20 18:37:16 +08:00
"anyOf" : [
2016-09-19 06:54:35 +08:00
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A regular expression, when matched the module is not parsed" ,
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 17:54:35 +08:00
"minItems" : 1
2016-09-19 06:54:35 +08:00
} ,
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2017-02-02 18:47:21 +08:00
} ,
2017-06-03 08:28:54 +08:00
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2017-06-03 08:28:54 +08:00
} ,
2017-02-02 18:47:21 +08:00
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2017-02-02 18:47:21 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "An absolute path, when the module starts with this path it is not parsed" ,
2017-02-02 18:47:21 +08:00
"type" : "string" ,
"absolutePath" : true
} ,
2018-09-21 17:54:35 +08:00
"minItems" : 1
2017-02-02 18:47:21 +08:00
} ,
{
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
}
]
} ,
2016-09-20 18:36:08 +08:00
"rules" : {
2018-09-21 17:54:35 +08:00
"description" : "An array of rules applied for modules." ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2016-09-20 18:36:08 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetRules"
2016-09-20 18:36:08 +08:00
}
2017-11-17 21:26:23 +08:00
]
} ,
2018-09-21 17:54:35 +08:00
"strictExportPresence" : {
"description" : "Emit errors instead of warnings when imported names don't exist in imported module" ,
"type" : "boolean"
} ,
"strictThisContextOnImports" : {
"description" : "Handle the this context correctly according to the spec for namespace objects" ,
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"unknownContextCritical" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable warnings when using the require function in a not statically analyse-able way" ,
2016-09-20 18:36:08 +08:00
"type" : "boolean"
2016-09-19 06:54:35 +08:00
} ,
"unknownContextRecursive" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable recursive directory lookup when using the require function in a not statically analyse-able way" ,
2016-09-19 06:54:35 +08:00
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"unknownContextRegExp" : {
2017-11-16 15:59:22 +08:00
"description" : "Sets the regular expression when using the require function in a not statically analyse-able way" ,
2016-11-04 07:22:12 +08:00
"anyOf" : [
{
"type" : "boolean"
} ,
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2016-11-04 07:22:12 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
"unknownContextRequest" : {
2017-11-16 15:59:22 +08:00
"description" : "Sets the request when using the require function in a not statically analyse-able way" ,
2016-09-19 06:54:35 +08:00
"type" : "string"
} ,
2016-12-05 06:47:19 +08:00
"unsafeCache" : {
2017-11-16 15:59:22 +08:00
"description" : "Cache the resolving of module requests" ,
2016-12-05 06:47:19 +08:00
"anyOf" : [
{
"type" : "boolean"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2016-12-05 06:47:19 +08:00
}
]
} ,
2016-09-20 18:36:08 +08:00
"wrappedContextCritical" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable warnings for partial dynamic dependencies" ,
2016-09-19 06:54:35 +08:00
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"wrappedContextRecursive" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable recursive directory lookup for partial dynamic dependencies" ,
2016-09-19 06:54:35 +08:00
"type" : "boolean"
} ,
"wrappedContextRegExp" : {
2017-11-16 15:59:22 +08:00
"description" : "Set the inner regular expression for partial dynamic dependencies" ,
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"NodeOptions" : {
"type" : "object" ,
2018-12-05 21:49:36 +08:00
"additionalProperties" : false ,
2018-09-21 18:08:54 +08:00
"properties" : {
"__dirname" : {
"description" : "Include a polyfill for the '__dirname' variable" ,
"enum" : [ false , true , "mock" ]
} ,
"__filename" : {
"description" : "Include a polyfill for the '__filename' variable" ,
"enum" : [ false , true , "mock" ]
} ,
"global" : {
"description" : "Include a polyfill for the 'global' variable" ,
"type" : "boolean"
}
}
} ,
"NonEmptyArrayOfUniqueStringValues" : {
2019-05-21 17:27:45 +08:00
"description" : "A non-empty array of non-empty strings" ,
2018-09-21 18:08:54 +08:00
"type" : "array" ,
"items" : {
"description" : "A non-empty string" ,
"type" : "string" ,
"minLength" : 1
} ,
"minItems" : 1 ,
"uniqueItems" : true
} ,
"OptimizationOptions" : {
"description" : "Enables/Disables integrated optimizations" ,
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-19 06:54:35 +08:00
"additionalProperties" : false ,
"properties" : {
2018-09-21 18:08:54 +08:00
"checkWasmTypes" : {
"description" : "Check for incompatible wasm types when importing/exporting from/to ESM" ,
"type" : "boolean"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"chunkIds" : {
2018-12-07 19:26:35 +08:00
"description" : "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin)" ,
"enum" : [
"natural" ,
"named" ,
"deterministic" ,
"size" ,
"total-size" ,
false
]
2018-09-21 17:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"concatenateModules" : {
"description" : "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer" ,
"type" : "boolean"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"flagIncludedChunks" : {
"description" : "Also flag chunks as loaded which contain a subset of the modules" ,
"type" : "boolean"
2018-01-02 16:46:29 +08:00
} ,
2019-09-03 20:11:50 +08:00
"innerGraph" : {
"description" : "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection" ,
"type" : "boolean"
} ,
2019-01-28 17:40:32 +08:00
"mangleExports" : {
"description" : "Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports)" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"mangleWasmImports" : {
"description" : "Reduce size of WASM by changing imports to shorter strings." ,
"type" : "boolean"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"mergeDuplicateChunks" : {
"description" : "Merge chunks which contain the same modules" ,
"type" : "boolean"
} ,
"minimize" : {
"description" : "Enable minimizing the output. Uses optimization.minimizer." ,
"type" : "boolean"
} ,
"minimizer" : {
"description" : "Minimizer(s) to use for minimizing the output" ,
"type" : "array" ,
"items" : {
"description" : "Plugin of type object or instanceof Function" ,
"anyOf" : [
{
"$ref" : "#/definitions/WebpackPluginInstance"
} ,
{
"$ref" : "#/definitions/WebpackPluginFunction"
}
]
}
} ,
"moduleIds" : {
2018-10-12 22:53:14 +08:00
"description" : "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin)" ,
"enum" : [ "natural" , "named" , "hashed" , "deterministic" , "size" , false ]
2018-09-21 18:08:54 +08:00
} ,
"noEmitOnErrors" : {
"description" : "Avoid emitting assets when errors occur" ,
"type" : "boolean"
} ,
"nodeEnv" : {
"description" : "Set process.env.NODE_ENV to a specific value" ,
2016-09-21 01:53:56 +08:00
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"enum" : [ false ]
2016-09-21 01:53:56 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"type" : "string"
2016-09-21 01:53:56 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"portableRecords" : {
"description" : "Generate records with relative paths to be able to move the context folder" ,
"type" : "boolean"
} ,
"providedExports" : {
"description" : "Figure out which exports are provided by modules to generate more efficient code" ,
"type" : "boolean"
} ,
"removeAvailableModules" : {
"description" : "Removes modules from chunks when these modules are already included in all parents" ,
"type" : "boolean"
} ,
"removeEmptyChunks" : {
"description" : "Remove chunks which are empty" ,
"type" : "boolean"
} ,
"runtimeChunk" : {
"description" : "Create an additional chunk which contains only the webpack runtime and chunk hash maps" ,
"oneOf" : [
2016-09-19 06:54:35 +08:00
{
"type" : "boolean"
} ,
{
2018-09-21 18:08:54 +08:00
"enum" : [ "single" , "multiple" ]
2016-09-19 06:54:35 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"name" : {
"description" : "The name or name factory for the runtime chunks" ,
"oneOf" : [
{
"type" : "string"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
}
]
}
}
2016-09-19 06:54:35 +08:00
}
]
} ,
2018-09-21 18:08:54 +08:00
"sideEffects" : {
"description" : "Skip over modules which are flagged to contain no side effects when exports are not used" ,
"type" : "boolean"
2017-10-18 06:48:04 +08:00
} ,
2018-09-21 18:08:54 +08:00
"splitChunks" : {
"description" : "Optimize duplication and caching by splitting chunks by shared modules and cache group" ,
"oneOf" : [
2017-12-20 10:03:15 +08:00
{
2018-09-21 18:08:54 +08:00
"enum" : [ false ]
2017-12-20 10:03:15 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/OptimizationSplitChunksOptions"
2017-12-20 10:03:15 +08:00
}
2018-09-21 18:08:54 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 18:08:54 +08:00
"usedExports" : {
"description" : "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code" ,
"type" : "boolean"
}
}
} ,
2018-12-11 03:50:37 +08:00
"OptimizationSplitChunksCacheGroup" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"automaticNameDelimiter" : {
"description" : "Sets the name delimiter for created chunks" ,
"type" : "string" ,
"minLength" : 1
} ,
"chunks" : {
"description" : "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)" ,
"oneOf" : [
{
"enum" : [ "initial" , "async" , "all" ]
} ,
{
2018-12-12 17:46:44 +08:00
"$ref" : "#/definitions/OptimizationSplitChunksGetCacheGroups"
2018-12-11 03:50:37 +08:00
}
]
} ,
"enforce" : {
"description" : "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group" ,
"type" : "boolean"
} ,
"filename" : {
2019-06-19 04:09:10 +08:00
"description" : "Sets the template for the filename for created chunks" ,
"anyOf" : [
{
"type" : "string" ,
"absolutePath" : false ,
"minLength" : 1
} ,
{
"instanceof" : "Function" ,
2019-09-13 17:12:26 +08:00
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2019-06-19 04:09:10 +08:00
}
]
2018-12-11 03:50:37 +08:00
} ,
"idHint" : {
"description" : "Sets the hint for chunk id" ,
"type" : "string"
} ,
"maxAsyncRequests" : {
"description" : "Maximum number of requests which are accepted for on-demand loading" ,
"type" : "number" ,
"minimum" : 1
} ,
2018-12-12 03:47:50 +08:00
"maxAsyncSize" : {
"description" : "Maximal size hint for the on-demand chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-12-11 03:50:37 +08:00
"maxInitialRequests" : {
"description" : "Maximum number of initial chunks which are accepted for an entry point" ,
"type" : "number" ,
"minimum" : 1
} ,
2018-12-12 03:47:50 +08:00
"maxInitialSize" : {
"description" : "Maximal size hint for the initial chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-12-11 03:50:37 +08:00
"maxSize" : {
"description" : "Maximal size hint for the created chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
"minChunks" : {
"description" : "Minimum number of times a module has to be duplicated until it's considered for splitting" ,
"type" : "number" ,
"minimum" : 1
} ,
2019-05-13 19:10:23 +08:00
"minRemainingSize" : {
"description" : "Minimal size for the chunks the stay after moving the modules to a new chunk" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-12-11 03:50:37 +08:00
"minSize" : {
"description" : "Minimal size for the created chunk" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
"name" : {
"description" : "Give chunks for this cache group a name (chunks with equal name are merged)" ,
"oneOf" : [
{
"enum" : [ false ]
} ,
{
"instanceof" : "Function" ,
"tsType" : "Function"
} ,
{
"type" : "string"
}
]
} ,
"priority" : {
"description" : "Priority of this cache group" ,
"type" : "number"
} ,
"reuseExistingChunk" : {
"description" : "Try to reuse existing chunk (with name) when it has matching modules" ,
"type" : "boolean"
} ,
"test" : {
"description" : "Assign modules to a cache group by module name" ,
"oneOf" : [
{
"instanceof" : "Function" ,
"tsType" : "Function"
} ,
{
"type" : "string"
} ,
{
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
}
]
} ,
"type" : {
"description" : "Assign modules to a cache group by module type" ,
"oneOf" : [
{
"instanceof" : "Function" ,
"tsType" : "Function"
} ,
{
"type" : "string"
} ,
{
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
}
]
}
}
} ,
2018-12-12 17:46:44 +08:00
"OptimizationSplitChunksGetCacheGroups" : {
"instanceof" : "Function" ,
"tsType" : "((module: import('../lib/Module')) => OptimizationSplitChunksCacheGroup | OptimizationSplitChunksCacheGroup[] | void)"
} ,
2018-09-21 18:08:54 +08:00
"OptimizationSplitChunksOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"automaticNameDelimiter" : {
"description" : "Sets the name delimiter for created chunks" ,
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
} ,
2018-09-21 18:08:54 +08:00
"cacheGroups" : {
2019-08-09 20:46:42 +08:00
"description" : "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors')" ,
2018-09-21 18:08:54 +08:00
"type" : "object" ,
"additionalProperties" : {
"description" : "Configuration for a cache group" ,
"anyOf" : [
{
"enum" : [ false ]
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
} ,
{
"type" : "string"
} ,
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2018-09-21 18:08:54 +08:00
} ,
{
2018-12-11 03:50:37 +08:00
"$ref" : "#/definitions/OptimizationSplitChunksCacheGroup"
2018-09-21 18:08:54 +08:00
}
]
2019-09-24 23:17:26 +08:00
} ,
"not" : {
"description" : "Using the cacheGroup shorthand syntax with a cache group named 'test' is a potential config error\nDid you intent to define a cache group with a test instead?\ncacheGroups: {\n <name>: {\n test: ...\n }\n}" ,
"type" : "object" ,
"additionalProperties" : true ,
"properties" : {
"test" : {
"description" : "The test property is a cache group name, but using the test option of the cache group could be intended instead" ,
"anyOf" : [
{
"instanceof" : "Function" ,
"tsType" : "Function"
} ,
{
"type" : "string"
} ,
{
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
}
]
}
} ,
"required" : [ "test" ]
2018-09-21 18:08:54 +08:00
}
} ,
"chunks" : {
"description" : "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)" ,
"oneOf" : [
{
"enum" : [ "initial" , "async" , "all" ]
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
}
]
} ,
"fallbackCacheGroup" : {
"description" : "Options for modules not selected by any other cache group" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"automaticNameDelimiter" : {
"description" : "Sets the name delimiter for created chunks" ,
"type" : "string" ,
2017-12-17 23:52:56 +08:00
"minLength" : 1
} ,
2018-12-12 03:47:50 +08:00
"maxAsyncSize" : {
"description" : "Maximal size hint for the on-demand chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
"maxInitialSize" : {
"description" : "Maximal size hint for the initial chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-09-21 18:08:54 +08:00
"maxSize" : {
"description" : "Maximal size hint for the created chunks" ,
2018-12-04 23:40:06 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
2018-09-21 18:08:54 +08:00
} ,
"minSize" : {
"description" : "Minimal size for the created chunk" ,
2018-12-04 23:40:06 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
2018-09-21 18:08:54 +08:00
}
}
} ,
"filename" : {
2019-06-19 04:09:10 +08:00
"description" : "Sets the template for the filename for created chunks" ,
"anyOf" : [
{
"type" : "string" ,
"absolutePath" : false ,
"minLength" : 1
} ,
{
"instanceof" : "Function" ,
2019-09-13 17:12:26 +08:00
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2019-06-19 04:09:10 +08:00
}
]
2018-09-21 18:08:54 +08:00
} ,
"hidePathInfo" : {
"description" : "Prevents exposing path info when creating names for parts splitted by maxSize" ,
"type" : "boolean"
} ,
"maxAsyncRequests" : {
"description" : "Maximum number of requests which are accepted for on-demand loading" ,
"type" : "number" ,
"minimum" : 1
} ,
2018-12-11 03:50:37 +08:00
"maxAsyncSize" : {
"description" : "Maximal size hint for the on-demand chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-09-21 18:08:54 +08:00
"maxInitialRequests" : {
"description" : "Maximum number of initial chunks which are accepted for an entry point" ,
"type" : "number" ,
"minimum" : 1
} ,
2018-12-11 03:50:37 +08:00
"maxInitialSize" : {
"description" : "Maximal size hint for the initial chunks" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-09-21 18:08:54 +08:00
"maxSize" : {
"description" : "Maximal size hint for the created chunks" ,
2018-12-04 23:40:06 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
2018-09-21 18:08:54 +08:00
} ,
"minChunks" : {
"description" : "Minimum number of times a module has to be duplicated until it's considered for splitting" ,
"type" : "number" ,
"minimum" : 1
} ,
2019-05-13 19:10:23 +08:00
"minRemainingSize" : {
"description" : "Minimal size for the chunks the stay after moving the modules to a new chunk" ,
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
} ,
2018-09-21 18:08:54 +08:00
"minSize" : {
"description" : "Minimal size for the created chunks" ,
2018-12-04 23:40:06 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/OptimizationSplitChunksSizes"
}
]
2018-09-21 18:08:54 +08:00
} ,
"name" : {
"description" : "Give chunks created a name (chunks with equal name are merged)" ,
"oneOf" : [
{
2018-12-07 19:26:35 +08:00
"enum" : [ false ]
2018-09-21 18:08:54 +08:00
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
} ,
{
"type" : "string"
}
]
}
}
} ,
2018-12-04 23:40:06 +08:00
"OptimizationSplitChunksSizes" : {
"anyOf" : [
{
"description" : "Size of the javascript part of the chunk" ,
"type" : "number" ,
"minimum" : 0
} ,
{
"description" : "Specify size limits per size type" ,
"type" : "object" ,
"additionalProperties" : {
"description" : "Size of the part of the chunk with the type of the key" ,
"type" : "number"
}
}
]
} ,
2018-09-21 18:08:54 +08:00
"OutputOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2019-07-16 19:16:27 +08:00
"assetModuleFilename" : {
2019-07-17 23:30:25 +08:00
"description" : "The filename of asset modules as relative path inside the `output.path` directory." ,
2019-07-19 06:08:50 +08:00
"anyOf" : [
{
"type" : "string" ,
"absolutePath" : false
} ,
{
"instanceof" : "Function" ,
2019-09-13 17:12:26 +08:00
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2019-07-19 06:08:50 +08:00
}
]
2019-07-16 19:16:27 +08:00
} ,
2018-09-21 18:08:54 +08:00
"auxiliaryComment" : {
"description" : "Add a comment in the UMD wrapper." ,
"anyOf" : [
{
"description" : "Append the same comment above each import style." ,
"type" : "string"
} ,
{
2019-10-02 22:59:27 +08:00
"$ref" : "#/definitions/LibraryCustomUmdCommentObject"
2018-09-21 18:08:54 +08:00
}
]
} ,
"chunkCallbackName" : {
"description" : "The callback function name used by webpack for loading of chunks in WebWorkers." ,
"type" : "string"
} ,
"chunkFilename" : {
"description" : "The filename of non-entry chunks as relative path inside the `output.path` directory." ,
"type" : "string" ,
"absolutePath" : false
} ,
"chunkLoadTimeout" : {
"description" : "Number of milliseconds before chunk request expires" ,
"type" : "number"
} ,
2019-11-04 23:46:45 +08:00
"compareBeforeEmit" : {
"description" : "Check if to be emitted file already exists and have the same content before writing to output filesystem" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"crossOriginLoading" : {
"description" : "This option enables cross-origin loading of chunks." ,
"enum" : [ false , "anonymous" , "use-credentials" ]
} ,
"devtoolFallbackModuleFilenameTemplate" : {
"description" : "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers." ,
"anyOf" : [
{
"type" : "string"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
}
]
} ,
"devtoolModuleFilenameTemplate" : {
"description" : "Filename template string of function for the sources array in a generated SourceMap." ,
"anyOf" : [
{
"type" : "string"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
}
]
} ,
"devtoolNamespace" : {
"description" : "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries." ,
"type" : "string"
} ,
2019-08-27 02:21:07 +08:00
"ecmaVersion" : {
"description" : "The maximum EcmaScript version of the webpack generated code (doesn't include input source code from modules)." ,
"anyOf" : [
{
2019-10-11 04:01:04 +08:00
"type" : "number" ,
"minimum" : 5 ,
"maximum" : 11
} ,
{
"enum" : [ 2009 ]
2019-08-27 02:21:07 +08:00
} ,
{
"type" : "number" ,
2019-10-11 04:01:04 +08:00
"minimum" : 2015 ,
"maximum" : 2020
2019-08-27 02:21:07 +08:00
}
]
} ,
2018-09-21 18:08:54 +08:00
"filename" : {
"description" : "Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files." ,
"anyOf" : [
{
2018-09-21 18:16:33 +08:00
"type" : "string" ,
2019-06-19 04:09:10 +08:00
"absolutePath" : false ,
"minLength" : 1
2018-09-21 18:08:54 +08:00
} ,
2017-12-17 23:52:56 +08:00
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2019-09-13 17:12:26 +08:00
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2017-12-17 23:52:56 +08:00
}
2018-09-21 18:16:33 +08:00
]
2018-09-21 18:08:54 +08:00
} ,
"globalObject" : {
"description" : "An expression which is used to address the global object/scope in runtime code" ,
"type" : "string" ,
"minLength" : 1
} ,
"hashDigest" : {
"description" : "Digest type used for the hash" ,
"type" : "string"
} ,
"hashDigestLength" : {
"description" : "Number of chars which are used for the hash" ,
"type" : "number" ,
"minimum" : 1
} ,
"hashFunction" : {
"description" : "Algorithm used for generation the hash (see node.js crypto package)" ,
"anyOf" : [
{
"type" : "string" ,
"minLength" : 1
} ,
{
"instanceof" : "Function" ,
2019-07-17 22:02:33 +08:00
"tsType" : "typeof import('../lib/util/Hash')"
2018-09-21 18:08:54 +08:00
}
2017-12-17 23:52:56 +08:00
]
2016-09-19 06:54:35 +08:00
} ,
2017-04-15 23:39:49 +08:00
"hashSalt" : {
2017-11-16 15:59:22 +08:00
"description" : "Any string which is added to the hash to salt it" ,
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
2017-04-15 23:39:49 +08:00
} ,
2016-09-19 06:54:35 +08:00
"hotUpdateChunkFilename" : {
"description" : "The filename of the Hot Update Chunks. They are inside the output.path directory." ,
2018-09-25 22:07:42 +08:00
"type" : "string" ,
"absolutePath" : false
2016-09-19 06:54:35 +08:00
} ,
"hotUpdateFunction" : {
"description" : "The JSONP function used by webpack for async loading of hot update chunks." ,
"type" : "string"
} ,
"hotUpdateMainFilename" : {
"description" : "The filename of the Hot Update Main File. It is inside the `output.path` directory." ,
2018-09-25 22:07:42 +08:00
"type" : "string" ,
"absolutePath" : false
2016-09-19 06:54:35 +08:00
} ,
2019-10-09 04:29:46 +08:00
"iife" : {
"description" : "Wrap javascript code into IIFEs to avoid leaking into global scope." ,
"type" : "boolean"
} ,
2016-09-19 06:54:35 +08:00
"jsonpFunction" : {
"description" : "The JSONP function used by webpack for async loading of chunks." ,
"type" : "string"
} ,
2018-09-21 17:54:35 +08:00
"jsonpScriptType" : {
"description" : "This option enables loading async chunks via a custom script type, such as script type=\"module\"" ,
"enum" : [ false , "text/javascript" , "module" ]
2017-11-21 19:57:11 +08:00
} ,
2016-09-19 06:54:35 +08:00
"library" : {
2018-09-21 17:54:35 +08:00
"description" : "If set, export the bundle as library. `output.library` is the name." ,
2016-09-19 06:54:35 +08:00
"anyOf" : [
{
"type" : "string"
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A part of the library name" ,
2016-09-19 06:54:35 +08:00
"type" : "string"
2018-09-21 17:54:35 +08:00
}
2017-05-30 02:35:54 +08:00
} ,
{
2018-09-21 18:09:56 +08:00
"$ref" : "#/definitions/LibraryCustomUmdObject"
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
]
} ,
"libraryExport" : {
"description" : "Specify which export should be exposed as library" ,
"anyOf" : [
{
"type" : "string"
} ,
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2018-09-21 17:54:35 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
"libraryTarget" : {
2017-11-16 15:59:22 +08:00
"description" : "Type of library" ,
2016-09-19 06:54:35 +08:00
"enum" : [
"var" ,
2019-10-09 04:29:46 +08:00
"module" ,
2016-09-19 06:54:35 +08:00
"assign" ,
"this" ,
"window" ,
2017-12-28 01:46:37 +08:00
"self" ,
2016-09-19 06:54:35 +08:00
"global" ,
"commonjs" ,
"commonjs2" ,
"commonjs-module" ,
"amd" ,
2018-09-27 01:41:22 +08:00
"amd-require" ,
2016-09-19 06:54:35 +08:00
"umd" ,
"umd2" ,
2019-03-02 05:26:36 +08:00
"jsonp" ,
"system"
2016-09-19 06:54:35 +08:00
]
} ,
2019-10-09 04:29:46 +08:00
"module" : {
"description" : "Output javascript files as module source type." ,
"type" : "boolean"
} ,
2016-09-19 06:54:35 +08:00
"path" : {
"description" : "The output directory as **absolute path** (required)." ,
2017-02-02 17:13:37 +08:00
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
} ,
"pathinfo" : {
"description" : "Include comments with information about the modules." ,
"type" : "boolean"
} ,
"publicPath" : {
"description" : "The `publicPath` specifies the public URL address of the output files when referenced in a browser." ,
2017-12-20 10:03:15 +08:00
"anyOf" : [
{
"type" : "string"
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2019-10-02 14:54:21 +08:00
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2017-12-20 10:03:15 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
"sourceMapFilename" : {
"description" : "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory." ,
2017-02-02 18:18:23 +08:00
"type" : "string" ,
"absolutePath" : false
2016-09-19 06:54:35 +08:00
} ,
"sourcePrefix" : {
"description" : "Prefixes every line of the source in the bundle with this string." ,
"type" : "string"
} ,
2016-11-10 15:52:00 +08:00
"strictModuleExceptionHandling" : {
"description" : "Handles exceptions in module loading correctly at a performance cost." ,
"type" : "boolean"
} ,
2016-09-19 06:54:35 +08:00
"umdNamedDefine" : {
"description" : "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module." ,
"type" : "boolean"
2018-09-21 17:54:35 +08:00
} ,
"webassemblyModuleFilename" : {
"description" : "The filename of WebAssembly modules as relative path inside the `output.path` directory." ,
"type" : "string" ,
"absolutePath" : false
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 18:08:54 +08:00
"PerformanceOptions" : {
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-19 06:54:35 +08:00
"additionalProperties" : false ,
"properties" : {
2018-09-21 18:08:54 +08:00
"assetFilter" : {
"description" : "Filter function to select assets that are checked" ,
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2018-09-21 18:08:54 +08:00
} ,
"hints" : {
"description" : "Sets the format of the hints: warnings, errors or nothing at all" ,
"enum" : [ false , "warning" , "error" ]
} ,
"maxAssetSize" : {
"description" : "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints" ,
"type" : "number"
} ,
"maxEntrypointSize" : {
"description" : "Total size of an entry point (in bytes)" ,
"type" : "number"
}
}
} ,
"ResolveOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"alias" : {
"description" : "Redirect module requests" ,
"anyOf" : [
{
"type" : "object" ,
"additionalProperties" : {
"description" : "New request" ,
2019-07-08 22:11:43 +08:00
"oneOf" : [
{
"description" : "New request" ,
"type" : "string" ,
"minLength" : 1
} ,
{
"description" : "Multiple alternative requests" ,
"type" : "array" ,
"items" : {
"description" : "One choice of request" ,
"type" : "string" ,
"minLength" : 1
}
} ,
{
"description" : "Ignore request (replace with empty module)" ,
"enum" : [ false ]
}
]
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-19 06:54:35 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "Alias configuration" ,
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-19 06:54:35 +08:00
"additionalProperties" : false ,
"properties" : {
2016-09-20 18:36:08 +08:00
"alias" : {
2017-11-16 15:59:22 +08:00
"description" : "New request" ,
2019-07-08 22:11:43 +08:00
"oneOf" : [
{
"description" : "New request" ,
"type" : "string" ,
"minLength" : 1
} ,
{
"description" : "Multiple alternative requests" ,
"type" : "array" ,
"items" : {
"description" : "One choice of request" ,
"type" : "string" ,
"minLength" : 1
}
} ,
{
"description" : "Ignore request (replace with empty module)" ,
"enum" : [ false ]
}
]
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
"name" : {
2017-11-16 15:59:22 +08:00
"description" : "Request to be redirected" ,
2016-09-19 06:54:35 +08:00
"type" : "string"
} ,
"onlyModule" : {
2017-11-16 15:59:22 +08:00
"description" : "Redirect only exact matching request" ,
2016-09-19 06:54:35 +08:00
"type" : "boolean"
}
2019-07-12 21:40:52 +08:00
} ,
"required" : [ "alias" , "name" ]
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
}
]
} ,
2016-09-20 18:36:08 +08:00
"aliasFields" : {
2017-11-16 15:59:22 +08:00
"description" : "Fields in the description file (package.json) which are used to redirect requests inside the module" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringOrStringArrayValues"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
2018-10-31 20:53:38 +08:00
"cache" : {
"description" : "Enable caching of successfully resolved requests (cache entries are revalidated)" ,
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"cachePredicate" : {
2017-11-16 15:59:22 +08:00
"description" : "Predicate function to decide which requests should be cached" ,
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "Function"
2016-09-20 18:36:08 +08:00
} ,
2017-06-28 20:37:58 +08:00
"cacheWithContext" : {
2017-11-16 15:59:22 +08:00
"description" : "Include the context information in the cache identifier when caching" ,
2017-06-28 20:37:58 +08:00
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"descriptionFiles" : {
2017-11-16 15:59:22 +08:00
"description" : "Filenames used to find a description file" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"enforceExtension" : {
2017-11-16 15:59:22 +08:00
"description" : "Enforce using one of the extensions from the extensions option" ,
2016-09-20 18:36:08 +08:00
"type" : "boolean"
} ,
"extensions" : {
2017-11-16 15:59:22 +08:00
"description" : "Extensions added to the request when trying to find the file" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2017-11-16 15:59:22 +08:00
}
]
} ,
"fileSystem" : {
"description" : "Filesystem for the resolver"
2016-09-20 18:36:08 +08:00
} ,
"mainFields" : {
2017-11-16 15:59:22 +08:00
"description" : "Field names from the description file (package.json) which are used to find the default entry point" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringOrStringArrayValues"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"mainFiles" : {
2017-11-16 15:59:22 +08:00
"description" : "Filenames used to find the default entry point if there is no description file or main field" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"modules" : {
2017-11-16 15:59:22 +08:00
"description" : "Folder names or directory paths where to find modules" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ArrayOfStringValues"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"plugins" : {
2017-11-16 15:59:22 +08:00
"description" : "Plugins for the resolver" ,
2017-11-25 00:54:48 +08:00
"type" : "array" ,
"items" : {
"description" : "Plugin of type object or instanceof Function" ,
"anyOf" : [
{
2019-12-06 02:06:50 +08:00
"$ref" : "#/definitions/ResolvePluginInstance"
2017-11-25 00:54:48 +08:00
}
]
}
2016-09-20 18:36:08 +08:00
} ,
2017-11-16 15:59:22 +08:00
"resolver" : {
"description" : "Custom resolver"
} ,
2016-09-19 06:54:35 +08:00
"symlinks" : {
2017-11-16 15:59:22 +08:00
"description" : "Enable resolving symlinks to the original location" ,
2016-09-19 06:54:35 +08:00
"type" : "boolean"
} ,
"unsafeCache" : {
2018-10-31 20:53:38 +08:00
"description" : "Enable caching of successfully resolved requests (cache entries are not revalidated)" ,
2016-09-19 06:54:35 +08:00
"anyOf" : [
{
"type" : "boolean"
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "object" ,
"additionalProperties" : true
2016-09-19 06:54:35 +08:00
}
]
2016-12-05 06:47:19 +08:00
} ,
"useSyncFileSystemCalls" : {
2017-11-16 15:59:22 +08:00
"description" : "Use synchronous filesystem calls for the resolver" ,
2016-12-05 06:47:19 +08:00
"type" : "boolean"
2016-09-20 18:36:08 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
} ,
2019-12-06 02:06:50 +08:00
"ResolvePluginInstance" : {
"description" : "Plugin instance" ,
"type" : "object" ,
"additionalProperties" : true ,
"properties" : {
"apply" : {
"description" : "The run point of the plugin, required method." ,
"instanceof" : "Function" ,
"tsType" : "(resolver: import('enhanced-resolve/lib/Resolver')) => void"
}
} ,
"required" : [ "apply" ]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetCondition" : {
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
2018-09-21 18:14:33 +08:00
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
{
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
2016-09-20 18:36:08 +08:00
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2018-09-21 18:16:33 +08:00
"tsType" : "((value: string) => boolean)"
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditions"
2016-09-20 18:36:08 +08:00
} ,
{
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-20 18:36:08 +08:00
"additionalProperties" : false ,
"properties" : {
"and" : {
2017-11-16 15:59:22 +08:00
"description" : "Logical AND" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"exclude" : {
2017-11-16 15:59:22 +08:00
"description" : "Exclude all modules matching any of these conditions" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"include" : {
2017-11-16 15:59:22 +08:00
"description" : "Exclude all modules matching not any of these conditions" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"not" : {
2017-11-16 15:59:22 +08:00
"description" : "Logical NOT" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"or" : {
2017-11-16 15:59:22 +08:00
"description" : "Logical OR" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"test" : {
2017-11-16 15:59:22 +08:00
"description" : "Exclude all modules matching any of these conditions" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
}
]
} ,
2018-09-21 18:16:33 +08:00
"RuleSetConditionAbsolute" : {
"anyOf" : [
{
"instanceof" : "RegExp" ,
"tsType" : "RegExp"
} ,
{
"type" : "string" ,
"absolutePath" : true
} ,
{
"instanceof" : "Function" ,
"tsType" : "((value: string) => boolean)"
} ,
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"and" : {
"description" : "Logical AND" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
}
]
} ,
"exclude" : {
"description" : "Exclude all modules matching any of these conditions" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
} ,
"include" : {
"description" : "Exclude all modules matching not any of these conditions" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
} ,
"not" : {
"description" : "Logical NOT" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
}
]
} ,
"or" : {
"description" : "Logical OR" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
}
]
} ,
"test" : {
"description" : "Exclude all modules matching any of these conditions" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
}
]
}
}
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetConditionOrConditions" : {
2018-09-21 17:56:04 +08:00
"description" : "One or multiple rule conditions" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetCondition"
2018-09-21 17:56:04 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditions"
2018-09-21 17:56:04 +08:00
}
]
} ,
2018-09-21 18:16:33 +08:00
"RuleSetConditionOrConditionsAbsolute" : {
"description" : "One or multiple rule conditions" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionAbsolute"
} ,
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetConditions" : {
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-20 18:36:08 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A rule condition" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetCondition"
2017-11-16 15:59:22 +08:00
}
]
2019-11-28 23:19:18 +08:00
}
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 18:16:33 +08:00
"RuleSetConditionsAbsolute" : {
"type" : "array" ,
"items" : {
"description" : "A rule condition" ,
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionAbsolute"
}
]
2019-11-28 23:19:18 +08:00
}
2018-09-21 18:16:33 +08:00
} ,
2018-09-21 18:08:54 +08:00
"RuleSetLoader" : {
2018-09-21 17:54:35 +08:00
"type" : "string" ,
"minLength" : 1
2016-09-20 18:36:08 +08:00
} ,
2019-05-16 17:31:41 +08:00
"RuleSetLoaderOptions" : {
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
"type" : "object"
} ,
{
"type" : "string"
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetRule" : {
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-20 18:36:08 +08:00
"additionalProperties" : false ,
"properties" : {
2018-09-21 17:54:35 +08:00
"compiler" : {
"description" : "Match the child compiler name" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditions"
2018-09-21 17:54:35 +08:00
}
]
} ,
2016-09-20 18:36:08 +08:00
"enforce" : {
2017-11-16 15:59:22 +08:00
"description" : "Enforce this rule as pre or post step" ,
2018-08-24 22:57:16 +08:00
"enum" : [ "pre" , "post" ]
2016-09-20 18:36:08 +08:00
} ,
"exclude" : {
2017-11-16 15:59:22 +08:00
"description" : "Shortcut for resource.exclude" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2017-02-14 10:31:50 +08:00
{
2018-09-21 18:16:33 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-02-14 10:31:50 +08:00
}
2017-02-02 19:54:20 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
2019-11-16 00:27:36 +08:00
"generator" : {
"description" : "The options for the module generator" ,
"type" : "object"
} ,
2016-09-20 18:36:08 +08:00
"include" : {
2017-11-16 15:59:22 +08:00
"description" : "Shortcut for resource.include" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2017-02-14 10:31:50 +08:00
{
2018-09-21 18:16:33 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-02-14 10:31:50 +08:00
}
2017-02-02 19:54:20 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
"issuer" : {
2017-11-16 15:59:22 +08:00
"description" : "Match the issuer of the module (The module pointing to this module)" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2017-02-14 10:31:50 +08:00
{
2018-09-21 18:16:33 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-02-14 10:31:50 +08:00
}
2017-02-02 19:54:20 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
"loader" : {
2017-11-16 15:59:22 +08:00
"description" : "Shortcut for use.loader" ,
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetLoader"
2016-09-20 18:36:08 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetUse"
2016-09-20 18:36:08 +08:00
}
]
} ,
2016-09-21 01:39:15 +08:00
"oneOf" : {
2017-11-16 15:59:22 +08:00
"description" : "Only execute the first matching rule in this array" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetRules"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"options" : {
2017-11-16 15:59:22 +08:00
"description" : "Shortcut for use.options" ,
"anyOf" : [
{
2019-05-16 17:31:41 +08:00
"$ref" : "#/definitions/RuleSetLoaderOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"parser" : {
2017-11-16 15:59:22 +08:00
"description" : "Options for parsing" ,
2017-11-17 21:26:23 +08:00
"type" : "object" ,
2018-09-21 17:54:35 +08:00
"additionalProperties" : true
2017-12-06 19:09:34 +08:00
} ,
2019-05-16 17:31:41 +08:00
"realResource" : {
"description" : "Match the real resource path of the module" ,
2017-11-16 15:59:22 +08:00
"anyOf" : [
{
2019-05-16 17:31:41 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 17:54:35 +08:00
"resolve" : {
"description" : "Options for the resolver" ,
"type" : "object" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ResolveOptions"
2018-09-21 17:54:35 +08:00
}
2017-10-30 20:56:57 +08:00
]
} ,
2016-09-20 18:36:08 +08:00
"resource" : {
2017-11-16 15:59:22 +08:00
"description" : "Match the resource path of the module" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2017-02-14 10:31:50 +08:00
{
2018-09-21 18:16:33 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-02-14 10:31:50 +08:00
}
2017-02-02 19:54:20 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
2016-11-23 00:58:24 +08:00
"resourceQuery" : {
2017-11-16 15:59:22 +08:00
"description" : "Match the resource query of the module" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditions"
2017-11-16 15:59:22 +08:00
}
]
2016-11-23 00:58:24 +08:00
} ,
2016-09-20 18:36:08 +08:00
"rules" : {
2017-11-16 15:59:22 +08:00
"description" : "Match and execute these rules when this rule is matched" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetRules"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 17:54:35 +08:00
"sideEffects" : {
"description" : "Flags a module as with or without side effects" ,
"type" : "boolean"
} ,
2016-09-20 18:36:08 +08:00
"test" : {
2017-11-16 15:59:22 +08:00
"description" : "Shortcut for resource.test" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
2017-02-14 10:31:50 +08:00
{
2018-09-21 18:16:33 +08:00
"$ref" : "#/definitions/RuleSetConditionOrConditionsAbsolute"
2017-02-14 10:31:50 +08:00
}
2017-02-02 19:54:20 +08:00
]
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 17:54:35 +08:00
"type" : {
"description" : "Module type to use for the module" ,
2019-05-22 19:07:10 +08:00
"type" : "string"
2018-09-21 17:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
"use" : {
2017-11-16 15:59:22 +08:00
"description" : "Modifiers applied to the module when rule is matched" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetUse"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 18:08:54 +08:00
"RuleSetRules" : {
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-20 18:36:08 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "A rule" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetRule"
2017-11-16 15:59:22 +08:00
}
]
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
} ,
2018-09-21 18:08:54 +08:00
"RuleSetUse" : {
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetUseItem"
2016-09-20 18:36:08 +08:00
} ,
2016-11-23 00:58:24 +08:00
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2019-05-16 17:31:41 +08:00
"tsType" : "((data: object) => RuleSetUseItem[])"
2016-11-23 00:58:24 +08:00
} ,
2016-09-20 18:36:08 +08:00
{
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-20 18:36:08 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "An use item" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetUseItem"
2017-11-16 15:59:22 +08:00
}
]
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetUseItem" : {
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetLoader"
2016-09-20 18:36:08 +08:00
} ,
2016-12-23 02:14:54 +08:00
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
2019-05-16 17:31:41 +08:00
"tsType" : "((data: object) => RuleSetUseItem|RuleSetUseItem[])"
2016-12-23 02:14:54 +08:00
} ,
2016-09-20 18:36:08 +08:00
{
2018-09-21 17:54:35 +08:00
"type" : "object" ,
2016-09-20 18:36:08 +08:00
"additionalProperties" : false ,
"properties" : {
2018-09-21 17:54:35 +08:00
"ident" : {
2019-05-16 17:31:41 +08:00
"description" : "Unique loader options identifier" ,
2018-09-21 17:54:35 +08:00
"type" : "string"
} ,
2016-09-20 18:36:08 +08:00
"loader" : {
2017-11-16 15:59:22 +08:00
"description" : "Loader name" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/RuleSetLoader"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
} ,
"options" : {
2017-11-16 15:59:22 +08:00
"description" : "Loader options" ,
"anyOf" : [
{
2019-05-16 17:31:41 +08:00
"$ref" : "#/definitions/RuleSetLoaderOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-20 18:36:08 +08:00
}
2017-07-28 00:33:10 +08:00
}
}
]
2018-09-21 18:08:54 +08:00
} ,
"StatsOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"all" : {
"description" : "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)" ,
"type" : "boolean"
} ,
"assets" : {
"description" : "add assets information" ,
"type" : "boolean"
} ,
"assetsSort" : {
"description" : "sort the assets by that field" ,
"type" : "string"
} ,
"builtAt" : {
"description" : "add built at time information" ,
"type" : "boolean"
} ,
"cached" : {
"description" : "add information about cached (not built) modules" ,
"type" : "boolean"
} ,
"cachedAssets" : {
"description" : "Show cached assets (setting this to `false` only shows emitted files)" ,
"type" : "boolean"
} ,
"children" : {
"description" : "add children information" ,
"type" : "boolean"
} ,
"chunkGroups" : {
"description" : "Display all chunk groups with the corresponding bundles" ,
"type" : "boolean"
} ,
"chunkModules" : {
"description" : "add built modules information to chunk information" ,
"type" : "boolean"
} ,
"chunkOrigins" : {
"description" : "add the origins of chunks and chunk merging info" ,
"type" : "boolean"
} ,
2018-12-22 20:19:13 +08:00
"chunkRelations" : {
"description" : "add information about parent, children and sibling chunks to chunk information" ,
"type" : "boolean"
} ,
2018-12-06 19:30:22 +08:00
"chunkRootModules" : {
"description" : "add root modules information to chunk information" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"chunks" : {
"description" : "add chunk information" ,
"type" : "boolean"
} ,
"chunksSort" : {
"description" : "sort the chunks by that field" ,
"type" : "string"
} ,
"colors" : {
"description" : "Enables/Disables colorful output" ,
"oneOf" : [
{
"description" : "`webpack --colors` equivalent" ,
"type" : "boolean"
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"bold" : {
"description" : "Custom color for bold text" ,
"type" : "string"
} ,
"cyan" : {
"description" : "Custom color for cyan text" ,
"type" : "string"
} ,
"green" : {
"description" : "Custom color for green text" ,
"type" : "string"
} ,
"magenta" : {
"description" : "Custom color for magenta text" ,
"type" : "string"
} ,
"red" : {
"description" : "Custom color for red text" ,
"type" : "string"
} ,
"yellow" : {
"description" : "Custom color for yellow text" ,
"type" : "string"
}
}
}
]
} ,
"context" : {
"description" : "context directory for request shortening" ,
"type" : "string" ,
"absolutePath" : true
} ,
"depth" : {
"description" : "add module depth in module graph" ,
"type" : "boolean"
} ,
"entrypoints" : {
"description" : "Display the entry points with the corresponding bundles" ,
"type" : "boolean"
} ,
"env" : {
"description" : "add --env information" ,
"type" : "boolean"
} ,
"errorDetails" : {
"description" : "add details to errors (like resolving log)" ,
"type" : "boolean"
} ,
2019-10-15 04:34:40 +08:00
"errorStack" : {
"description" : "add internal stack trace to errors" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"errors" : {
"description" : "add errors" ,
"type" : "boolean"
} ,
"exclude" : {
"description" : "Please use excludeModules instead." ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
} ,
{
"type" : "boolean"
}
]
} ,
"excludeAssets" : {
"description" : "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions" ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
}
]
} ,
"excludeModules" : {
"description" : "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions" ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
} ,
{
"type" : "boolean"
}
]
} ,
"hash" : {
"description" : "add the hash of the compilation" ,
"type" : "boolean"
} ,
2020-02-03 18:00:13 +08:00
"ids" : {
"description" : "add ids" ,
"type" : "boolean"
} ,
add logging API
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)
Loader:
this.getLogger([name])
API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 23:13:40 +08:00
"logging" : {
"description" : "add logging output" ,
2019-07-19 17:59:48 +08:00
"anyOf" : [
{
"description" : "enable/disable logging output (true: shows normal logging output, loglevel: log)" ,
"type" : "boolean"
} ,
{
"description" : "specify log level of logging output" ,
2019-07-22 16:35:26 +08:00
"enum" : [ "none" , "error" , "warn" , "info" , "log" , "verbose" ]
2019-07-19 17:59:48 +08:00
}
]
add logging API
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)
Loader:
this.getLogger([name])
API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 23:13:40 +08:00
} ,
2019-07-22 14:23:40 +08:00
"loggingDebug" : {
"description" : "Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions" ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
} ,
{
"description" : "Enable/Disable debug logging for all loggers" ,
"type" : "boolean"
}
]
} ,
add logging API
Plugins:
Compiler.getInfrastructureLogger(name)
Compilation.getLogger(name)
Loader:
this.getLogger([name])
API equal to console API with these methods:
error, warn, info, log, debug,
time, timeLog, timeEnd,
group, groupCollapsed, groupEnd,
profile, profileEnd,
clear
2019-07-18 23:13:40 +08:00
"loggingTrace" : {
"description" : "add stack traces to logging output" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"maxModules" : {
"description" : "Set the maximum number of modules to be shown" ,
"type" : "number"
} ,
"moduleAssets" : {
"description" : "add information about assets inside modules" ,
"type" : "boolean"
} ,
"moduleTrace" : {
"description" : "add dependencies and origin of warnings/errors" ,
"type" : "boolean"
} ,
"modules" : {
"description" : "add built modules information" ,
"type" : "boolean"
} ,
"modulesSort" : {
"description" : "sort the modules by that field" ,
"type" : "string"
} ,
"nestedModules" : {
"description" : "add information about modules nested in other modules (like with module concatenation)" ,
"type" : "boolean"
} ,
"optimizationBailout" : {
"description" : "show reasons why optimization bailed out for modules" ,
"type" : "boolean"
} ,
"orphanModules" : {
"description" : "add information about orphan modules" ,
"type" : "boolean"
} ,
"outputPath" : {
"description" : "Add output path information" ,
"type" : "boolean"
} ,
"performance" : {
"description" : "add performance hint flags" ,
"type" : "boolean"
} ,
2018-12-22 18:58:29 +08:00
"preset" : {
"description" : "preset for the default values" ,
"anyOf" : [
{
"type" : "boolean"
} ,
{
"type" : "string"
}
]
} ,
2018-09-21 18:08:54 +08:00
"providedExports" : {
"description" : "show exports provided by modules" ,
"type" : "boolean"
} ,
"publicPath" : {
"description" : "Add public path information" ,
"type" : "boolean"
} ,
"reasons" : {
"description" : "add information about the reasons why modules are included" ,
"type" : "boolean"
} ,
2018-11-28 20:07:40 +08:00
"runtime" : {
"description" : "add information about runtime modules" ,
"type" : "boolean"
} ,
2018-09-21 18:08:54 +08:00
"source" : {
"description" : "add the source code of modules" ,
"type" : "boolean"
} ,
"timings" : {
"description" : "add timing information" ,
"type" : "boolean"
} ,
"usedExports" : {
"description" : "show exports used by modules" ,
"type" : "boolean"
} ,
"version" : {
"description" : "add webpack version information" ,
"type" : "boolean"
} ,
"warnings" : {
"description" : "add warnings" ,
"type" : "boolean"
} ,
"warningsFilter" : {
"description" : "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions" ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
}
]
}
}
} ,
2018-12-10 18:34:59 +08:00
"WatchOptions" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"aggregateTimeout" : {
"description" : "Delay the rebuilt after the first change. Value is a time in ms." ,
"type" : "number"
} ,
"ignored" : {
2019-07-01 15:00:19 +08:00
"description" : "Ignore some files from watching (glob pattern)" ,
"anyOf" : [
{
"description" : "A single glob pattern for files that should be ignored from watching" ,
"type" : "string" ,
"minLength" : 1
} ,
{
"$ref" : "#/definitions/ArrayOfStringValues"
}
]
2018-12-10 18:34:59 +08:00
} ,
"poll" : {
"description" : "Enable polling mode for watching" ,
"anyOf" : [
{
"description" : "`true`: use polling." ,
"type" : "boolean"
} ,
{
"description" : "`number`: use polling with specified interval." ,
"type" : "number"
}
]
} ,
"stdin" : {
"description" : "Stop watching when stdin stream has ended" ,
"type" : "boolean"
}
}
} ,
2018-09-21 18:08:54 +08:00
"WebpackPluginFunction" : {
"description" : "Function acting as plugin" ,
"instanceof" : "Function" ,
2018-11-22 23:15:20 +08:00
"tsType" : "(this: import('../lib/Compiler'), compiler: import('../lib/Compiler')) => void"
2018-09-21 18:08:54 +08:00
} ,
"WebpackPluginInstance" : {
"description" : "Plugin instance" ,
"type" : "object" ,
"additionalProperties" : true ,
"properties" : {
"apply" : {
"description" : "The run point of the plugin, required method." ,
"instanceof" : "Function" ,
"tsType" : "(compiler: import('../lib/Compiler')) => void"
}
} ,
"required" : [ "apply" ]
2016-09-19 06:54:35 +08:00
}
} ,
2018-09-21 17:54:35 +08:00
"type" : "object" ,
"additionalProperties" : false ,
2016-09-19 06:54:35 +08:00
"properties" : {
"amd" : {
2019-03-11 00:05:35 +08:00
"description" : "Set the value of `require.amd` and `define.amd`. Or disable AMD support." ,
"anyOf" : [
{
"description" : "You can pass `false` to disable AMD support." ,
2019-03-12 00:18:14 +08:00
"enum" : [ false ]
2019-03-11 00:05:35 +08:00
} ,
{
"description" : "You can pass an object to set the value of `require.amd` and `define.amd`." ,
"type" : "object"
}
]
2016-09-19 06:54:35 +08:00
} ,
"bail" : {
"description" : "Report the first error as a hard error instead of tolerating it." ,
"type" : "boolean"
} ,
"cache" : {
"description" : "Cache generated modules and chunks to improve performance for multiple incremental builds." ,
2016-09-20 18:37:16 +08:00
"anyOf" : [
2016-09-19 06:54:35 +08:00
{
2018-10-09 20:30:59 +08:00
"description" : "Disable caching." ,
"enum" : [ false ]
2016-09-19 06:54:35 +08:00
} ,
{
2018-10-09 20:30:59 +08:00
"description" : "Enable in memory caching." ,
"enum" : [ true ]
} ,
{
"description" : "Options for memory caching." ,
"anyOf" : [
{
"$ref" : "#/definitions/MemoryCacheOptions"
}
]
} ,
{
"description" : "Options for persistent caching." ,
"anyOf" : [
{
"$ref" : "#/definitions/FileCacheOptions"
}
]
2016-09-19 06:54:35 +08:00
}
]
} ,
"context" : {
"description" : "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory." ,
2017-02-02 17:13:37 +08:00
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
"dependencies" : {
"description" : "References to other configurations to depend on." ,
2018-09-21 17:54:35 +08:00
"type" : "array" ,
2016-09-20 18:36:08 +08:00
"items" : {
2017-11-16 15:59:22 +08:00
"description" : "References to another configuration to depend on." ,
2016-09-20 18:36:08 +08:00
"type" : "string"
2018-09-21 17:54:35 +08:00
}
2016-09-20 18:36:08 +08:00
} ,
2016-09-19 06:54:35 +08:00
"devServer" : {
2017-11-16 15:59:22 +08:00
"description" : "Options for the webpack-dev-server" ,
2016-09-19 06:54:35 +08:00
"type" : "object"
} ,
"devtool" : {
2019-10-18 20:58:50 +08:00
"description" : "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map)." ,
"oneOf" : [
{
"enum" : [ false , "eval" ]
} ,
{
"type" : "string" ,
"pattern" : "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"
}
2016-09-19 06:54:35 +08:00
]
} ,
"entry" : {
2017-11-16 15:59:22 +08:00
"description" : "The entry point(s) of the compilation." ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/Entry"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2019-06-04 17:26:04 +08:00
"experiments" : {
"description" : "Enables/Disables experiments (experiemental features with relax SemVer compatibility)" ,
"anyOf" : [
{
"$ref" : "#/definitions/Experiments"
}
]
} ,
2016-09-19 06:54:35 +08:00
"externals" : {
2017-11-16 15:59:22 +08:00
"description" : "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`." ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/Externals"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2019-07-22 14:23:40 +08:00
"infrastructureLogging" : {
"description" : "Options for infrastructure level logging" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"debug" : {
"description" : "Enable debug logging for specific loggers" ,
"anyOf" : [
{
"$ref" : "#/definitions/FilterTypes"
} ,
{
"description" : "Enable/Disable debug logging for all loggers" ,
"type" : "boolean"
}
]
} ,
"level" : {
"description" : "Log level" ,
2019-07-22 16:35:26 +08:00
"enum" : [ "none" , "error" , "warn" , "info" , "log" , "verbose" ]
2019-07-22 14:23:40 +08:00
}
}
} ,
2016-09-19 06:54:35 +08:00
"loader" : {
"description" : "Custom values available in the loader context." ,
"type" : "object"
} ,
2018-09-21 17:54:35 +08:00
"mode" : {
"description" : "Enable production optimizations or development hints." ,
"enum" : [ "development" , "production" , "none" ]
} ,
2016-09-19 06:54:35 +08:00
"module" : {
2017-11-16 15:59:22 +08:00
"description" : "Options affecting the normal modules (`NormalModuleFactory`)." ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ModuleOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
"name" : {
"description" : "Name of the configuration. Used when loading multiple configurations." ,
"type" : "string"
} ,
"node" : {
"description" : "Include polyfills or mocks for various node stuff." ,
2017-06-02 07:47:43 +08:00
"anyOf" : [
{
2018-08-24 22:57:16 +08:00
"enum" : [ false ]
2016-09-19 06:54:35 +08:00
} ,
2017-06-02 07:47:43 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/NodeOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2017-11-21 17:41:01 +08:00
"optimization" : {
"description" : "Enables/Disables integrated optimizations" ,
2018-09-21 18:08:54 +08:00
"anyOf" : [
{
"$ref" : "#/definitions/OptimizationOptions"
}
]
} ,
"output" : {
"description" : "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk." ,
"anyOf" : [
{
"$ref" : "#/definitions/OutputOptions"
}
]
} ,
"parallelism" : {
"description" : "The number of parallel processed modules in the compilation." ,
"type" : "number" ,
"minimum" : 1
} ,
"performance" : {
"description" : "Configuration for web performance recommendations." ,
"anyOf" : [
{
"enum" : [ false ]
2017-11-21 17:41:01 +08:00
} ,
2018-09-21 17:54:35 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/PerformanceOptions"
2016-11-04 02:02:34 +08:00
}
2016-12-14 18:33:57 +08:00
]
2016-11-04 02:02:34 +08:00
} ,
2016-09-19 06:54:35 +08:00
"plugins" : {
"description" : "Add additional plugins to the compiler." ,
2017-11-25 00:54:48 +08:00
"type" : "array" ,
"items" : {
"description" : "Plugin of type object or instanceof Function" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/WebpackPluginInstance"
2017-11-25 00:54:48 +08:00
} ,
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/WebpackPluginFunction"
2017-11-25 00:54:48 +08:00
}
]
}
2016-09-19 06:54:35 +08:00
} ,
"profile" : {
"description" : "Capture timing information for each module." ,
"type" : "boolean"
} ,
"recordsInputPath" : {
"description" : "Store compiler state to a json file." ,
2017-02-02 18:41:29 +08:00
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
} ,
"recordsOutputPath" : {
"description" : "Load compiler state from a json file." ,
2017-02-02 18:41:29 +08:00
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
} ,
"recordsPath" : {
"description" : "Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined." ,
2017-02-02 17:13:37 +08:00
"type" : "string" ,
"absolutePath" : true
2016-09-19 06:54:35 +08:00
} ,
"resolve" : {
2017-11-16 15:59:22 +08:00
"description" : "Options for the resolver" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ResolveOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
"resolveLoader" : {
2017-11-16 15:59:22 +08:00
"description" : "Options for the resolver when resolving loaders" ,
"anyOf" : [
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/ResolveOptions"
2017-11-16 15:59:22 +08:00
}
]
2016-09-19 06:54:35 +08:00
} ,
2018-05-15 22:12:54 +08:00
"serve" : {
"description" : "Options for webpack-serve" ,
"type" : "object"
} ,
2016-09-19 06:54:35 +08:00
"stats" : {
"description" : "Used by the webpack CLI program to pass stats options." ,
2016-09-20 18:37:16 +08:00
"anyOf" : [
2016-09-19 06:54:35 +08:00
{
2018-09-21 18:08:54 +08:00
"$ref" : "#/definitions/StatsOptions"
2016-09-19 06:54:35 +08:00
} ,
{
"type" : "boolean"
} ,
{
"enum" : [
"none" ,
"errors-only" ,
"minimal" ,
"normal" ,
2017-01-18 05:26:38 +08:00
"detailed" ,
2019-03-19 18:57:08 +08:00
"verbose" ,
"errors-warnings"
2016-09-19 06:54:35 +08:00
]
}
]
} ,
"target" : {
2017-11-16 15:59:22 +08:00
"description" : "Environment to build for" ,
2016-09-19 06:54:35 +08:00
"anyOf" : [
{
"enum" : [
"web" ,
"webworker" ,
"node" ,
"async-node" ,
"node-webkit" ,
2016-10-10 02:12:04 +08:00
"electron-main" ,
2019-05-26 06:52:14 +08:00
"electron-renderer" ,
"electron-preload"
2016-09-19 06:54:35 +08:00
]
} ,
{
2018-09-21 18:09:56 +08:00
"instanceof" : "Function" ,
"tsType" : "((compiler: import('../lib/Compiler')) => void)"
2016-09-19 06:54:35 +08:00
}
]
} ,
"watch" : {
"description" : "Enter watch mode, which rebuilds on file change." ,
"type" : "boolean"
} ,
"watchOptions" : {
2017-11-16 15:59:22 +08:00
"description" : "Options for the watcher" ,
2018-12-10 18:34:59 +08:00
"anyOf" : [
{
"$ref" : "#/definitions/WatchOptions"
2016-09-19 06:54:35 +08:00
}
2018-12-10 18:34:59 +08:00
]
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-09 00:40:54 +08:00
}