2016-09-09 00:40:54 +08:00
{
2016-09-19 06:54:35 +08:00
"definitions" : {
2020-02-17 17:27:46 +08:00
"Amd" : {
"description" : "Set the value of `require.amd` and `define.amd`. Or disable AMD support." ,
"anyOf" : [
{
"description" : "You can pass `false` to disable AMD support." ,
"enum" : [ false ]
} ,
{
"description" : "You can pass an object to set the value of `require.amd` and `define.amd`." ,
"type" : "object"
}
]
} ,
2018-09-21 18:08:54 +08:00
"ArrayOfStringOrStringArrayValues" : {
2020-02-17 19:14:51 +08:00
"description" : "List of string or string-array values" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "Array of strings" ,
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
} ,
2020-02-20 03:25:49 +08:00
"AssetModuleFilename" : {
"description" : "The filename of asset modules as relative path inside the `output.path` directory." ,
"anyOf" : [
{
"type" : "string" ,
"absolutePath" : false
} ,
{
"instanceof" : "Function" ,
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
}
]
} ,
"AuxiliaryComment" : {
"description" : "Add a comment in the UMD wrapper." ,
"anyOf" : [
{
"description" : "Append the same comment above each import style." ,
"type" : "string"
} ,
{
"$ref" : "#/definitions/LibraryCustomUmdCommentObject"
}
]
} ,
2020-02-17 17:27:46 +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." ,
"anyOf" : [
{
"$ref" : "#/definitions/CacheNormalized"
} ,
{
"description" : "Enable in memory caching." ,
"enum" : [ true ]
}
]
} ,
"CacheNormalized" : {
"description" : "Cache generated modules and chunks to improve performance for multiple incremental builds." ,
"anyOf" : [
{
"description" : "Disable caching." ,
"enum" : [ false ]
} ,
{
"description" : "Options for memory caching." ,
"anyOf" : [
{
"$ref" : "#/definitions/MemoryCacheOptions"
}
]
} ,
{
"description" : "Options for persistent caching." ,
"anyOf" : [
{
"$ref" : "#/definitions/FileCacheOptions"
}
]
}
]
} ,
2020-02-20 03:25:49 +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"
} ,
"CompareBeforeEmit" : {
"description" : "Check if to be emitted file already exists and have the same content before writing to output filesystem" ,
"type" : "boolean"
} ,
2020-02-17 17:27:46 +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." ,
"type" : "string" ,
"absolutePath" : true
} ,
2020-02-20 03:25:49 +08:00
"CrossOriginLoading" : {
"description" : "This option enables cross-origin loading of chunks." ,
"enum" : [ false , "anonymous" , "use-credentials" ]
} ,
2020-02-17 17:27:46 +08:00
"Dependencies" : {
"description" : "References to other configurations to depend on." ,
"type" : "array" ,
"items" : {
"description" : "References to another configuration to depend on." ,
"type" : "string"
}
} ,
"DevServer" : {
"description" : "Options for the webpack-dev-server" ,
"type" : "object"
} ,
"DevTool" : {
"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$"
}
]
} ,
2020-02-20 03:25:49 +08:00
"DevtoolFallbackModuleFilenameTemplate" : {
"description" : "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers." ,
"anyOf" : [
{
"type" : "string"
} ,
{
"instanceof" : "Function" ,
"tsType" : "Function"
}
]
} ,
"DevtoolModuleFilenameTemplate" : {
"description" : "Filename template string of function for the sources array in a generated SourceMap." ,
"anyOf" : [
{
"type" : "string"
} ,
{
"instanceof" : "Function" ,
"tsType" : "Function"
}
]
} ,
"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"
} ,
"EcmaVersion" : {
"description" : "The maximum EcmaScript version of the webpack generated code (doesn't include input source code from modules)." ,
"anyOf" : [
{
"type" : "number" ,
"minimum" : 5 ,
"maximum" : 11
} ,
{
"enum" : [ 2009 ]
} ,
{
"type" : "number" ,
"minimum" : 2015 ,
"maximum" : 2020
}
]
} ,
"EnabledLibraryTypes" : {
"description" : "List of library types enabled for use by entry points" ,
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/LibraryType"
}
} ,
2018-09-21 18:08:54 +08:00
"Entry" : {
2020-02-17 17:27:46 +08:00
"description" : "The entry point(s) of the compilation." ,
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-01-31 23:54:42 +08:00
"dependOn" : {
"description" : "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded." ,
"oneOf" : [
{
"description" : "The name of another entrypoint." ,
"type" : "string" ,
"minLength" : 1
} ,
{
"description" : "A list of other entrypoints." ,
"anyOf" : [
{
"$ref" : "#/definitions/NonEmptyArrayOfUniqueStringValues"
}
]
}
]
} ,
2020-02-07 18:00:25 +08:00
"filename" : {
2020-02-26 20:08:05 +08:00
"$ref" : "#/definitions/Filename"
2020-02-07 18:00:25 +08:00
} ,
2020-02-03 22:46:14 +08:00
"import" : {
2020-02-26 20:08:05 +08:00
"$ref" : "#/definitions/EntryItem"
2020-02-26 19:34:57 +08:00
} ,
"library" : {
"$ref" : "#/definitions/LibraryOptions"
2020-02-26 20:08:05 +08:00
}
} ,
"required" : [ "import" ]
} ,
"EntryDescriptionNormalized" : {
"description" : "An object with entry point description." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"dependOn" : {
"description" : "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded." ,
"anyOf" : [
{
"$ref" : "#/definitions/NonEmptyArrayOfUniqueStringValues"
}
]
} ,
"filename" : {
"$ref" : "#/definitions/Filename"
} ,
"import" : {
"description" : "Module(s) that are loaded upon startup. The last one is exported." ,
"anyOf" : [
2020-02-03 22:46:14 +08:00
{
2020-02-26 20:08:05 +08:00
"$ref" : "#/definitions/NonEmptyArrayOfUniqueStringValues"
2020-02-03 22:46:14 +08:00
}
]
2020-02-26 19:34:57 +08:00
} ,
"library" : {
"$ref" : "#/definitions/LibraryOptions"
2020-02-03 22:46:14 +08:00
}
} ,
"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>)"
} ,
2020-02-17 17:27:46 +08:00
"EntryDynamicNormalized" : {
"description" : "A Function returning a Promise resolving to a normalized entry." ,
"instanceof" : "Function" ,
"tsType" : "(() => Promise<EntryStaticNormalized>)"
} ,
2018-09-21 18:09:56 +08:00
"EntryItem" : {
2020-02-17 19:14:51 +08:00
"description" : "Module(s) that are loaded upon startup" ,
2018-09-21 18:09:56 +08:00
"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
}
]
} ,
2020-02-17 17:27:46 +08:00
"EntryNormalized" : {
"description" : "The entry point(s) of the compilation." ,
"anyOf" : [
{
"$ref" : "#/definitions/EntryDynamicNormalized"
} ,
{
"$ref" : "#/definitions/EntryStaticNormalized"
}
]
} ,
2018-09-21 18:09:56 +08:00
"EntryObject" : {
2020-02-17 17:27:46 +08:00
"description" : "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object." ,
2018-09-21 18:09:56 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "A static entry description" ,
2018-09-21 18:09:56 +08:00
"oneOf" : [
{
"$ref" : "#/definitions/EntryObject"
2017-01-09 15:31:49 +08:00
} ,
2020-02-05 04:21:42 +08:00
{
"$ref" : "#/definitions/EntryUnnamed"
}
]
} ,
2020-02-17 17:27:46 +08:00
"EntryStaticNormalized" : {
"description" : "Multiple entry bundles are created. The key is the entry name. The value is an entry description object." ,
"type" : "object" ,
"additionalProperties" : {
"description" : "An object with entry point description." ,
"anyOf" : [
{
2020-02-26 20:08:05 +08:00
"$ref" : "#/definitions/EntryDescriptionNormalized"
2020-02-17 17:27:46 +08:00
}
]
} ,
"minProperties" : 1
} ,
2020-02-05 04:21:42 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "Specify dependency that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`." ,
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" : {
2020-02-17 17:27:46 +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`." ,
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
}
}
]
} ,
2020-02-18 17:44:55 +08:00
"ExternalsType" : {
"description" : "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value)" ,
"enum" : [
"var" ,
"module" ,
"assign" ,
"this" ,
"window" ,
"self" ,
"global" ,
"commonjs" ,
"commonjs2" ,
"commonjs-module" ,
"amd" ,
"amd-require" ,
"umd" ,
"umd2" ,
"jsonp" ,
"system"
]
} ,
2018-10-09 20:30:59 +08:00
"FileCacheOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for persistent file-based caching" ,
2018-10-09 20:30:59 +08:00
"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" ]
} ,
2020-02-20 03:25:49 +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" : [
{
"type" : "string" ,
"absolutePath" : false ,
"minLength" : 1
} ,
{
"instanceof" : "Function" ,
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
}
]
} ,
2018-09-21 18:08:54 +08:00
"FilterItemTypes" : {
2020-02-17 19:14:51 +08:00
"description" : "Filtering value, regexp or function" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "Filtering values" ,
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
} ,
2020-02-20 03:25:49 +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" ,
"tsType" : "typeof import('../lib/util/Hash')"
}
]
} ,
"HashSalt" : {
"description" : "Any string which is added to the hash to salt it" ,
"type" : "string" ,
"minLength" : 1
} ,
"HotUpdateChunkFilename" : {
"description" : "The filename of the Hot Update Chunks. They are inside the output.path directory." ,
"type" : "string" ,
"absolutePath" : false
} ,
"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." ,
"type" : "string" ,
"absolutePath" : false
} ,
"Iife" : {
"description" : "Wrap javascript code into IIFEs to avoid leaking into global scope." ,
"type" : "boolean"
} ,
2020-02-17 17:27:46 +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" ,
"enum" : [ "none" , "error" , "warn" , "info" , "log" , "verbose" ]
}
}
} ,
2020-02-20 03:25:49 +08:00
"JsonpFunction" : {
"description" : "The JSONP function used by webpack for async loading of chunks." ,
"type" : "string"
} ,
"JsonpScriptType" : {
"description" : "This option enables loading async chunks via a custom script type, such as script type=\"module\"" ,
"enum" : [ false , "text/javascript" , "module" ]
} ,
"Library" : {
"description" : "Make the output files a library, exporting the exports of the entry point" ,
"anyOf" : [
{
"$ref" : "#/definitions/LibraryName"
} ,
{
"$ref" : "#/definitions/LibraryOptions"
}
]
} ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "Description object for all UMD variants of the library name" ,
2018-09-21 18:09:56 +08:00
"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"
}
]
}
}
} ,
2020-02-20 03:25:49 +08:00
"LibraryExport" : {
"description" : "Specify which export should be exposed as library" ,
"anyOf" : [
{
"type" : "string"
} ,
{
"$ref" : "#/definitions/ArrayOfStringValues"
}
]
} ,
"LibraryName" : {
"description" : "The name of the library (some types allow unnamed libraries too)" ,
"anyOf" : [
{
"type" : "string"
} ,
{
"type" : "array" ,
"items" : {
"description" : "A part of the library name" ,
"type" : "string"
}
} ,
{
"$ref" : "#/definitions/LibraryCustomUmdObject"
}
]
} ,
"LibraryOptions" : {
"description" : "Options for library" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"auxiliaryComment" : {
"$ref" : "#/definitions/AuxiliaryComment"
} ,
"export" : {
"$ref" : "#/definitions/LibraryExport"
} ,
"name" : {
"$ref" : "#/definitions/LibraryName"
} ,
"type" : {
"$ref" : "#/definitions/LibraryType"
} ,
"umdNamedDefine" : {
"$ref" : "#/definitions/UmdNamedDefine"
}
} ,
"required" : [ "type" ]
} ,
"LibraryType" : {
"description" : "Type of library" ,
"enum" : [
"var" ,
"module" ,
"assign" ,
"this" ,
"window" ,
"self" ,
"global" ,
"commonjs" ,
"commonjs2" ,
"commonjs-module" ,
"amd" ,
"amd-require" ,
"umd" ,
"umd2" ,
"jsonp" ,
"system"
]
} ,
2020-02-17 17:27:46 +08:00
"Loader" : {
"description" : "Custom values available in the loader context." ,
"type" : "object"
} ,
2018-10-09 20:30:59 +08:00
"MemoryCacheOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for in-memory caching" ,
2018-10-09 20:30:59 +08:00
"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" ]
} ,
2020-02-17 17:27:46 +08:00
"Mode" : {
"description" : "Enable production optimizations or development hints." ,
"enum" : [ "development" , "production" , "none" ]
} ,
"Module" : {
"description" : "Options affecting the normal modules (`NormalModuleFactory`)." ,
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
} ,
2020-02-17 17:27:46 +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." ,
"anyOf" : [
{
"enum" : [ false ]
} ,
{
"$ref" : "#/definitions/NodeOptions"
}
]
} ,
2018-09-21 18:08:54 +08:00
"NodeOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for node compatibility features" ,
2018-09-21 18:08:54 +08:00
"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
} ,
2020-02-17 17:27:46 +08:00
"Optimization" : {
2018-09-21 18:08:54 +08:00
"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" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/OptimizationRuntimeChunk"
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"
}
}
} ,
2020-02-17 17:27:46 +08:00
"OptimizationRuntimeChunk" : {
"description" : "Create an additional chunk which contains only the webpack runtime and chunk hash maps" ,
"oneOf" : [
{
"type" : "boolean"
} ,
{
"enum" : [ "single" , "multiple" ]
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"name" : {
"description" : "The name or name factory for the runtime chunks" ,
"oneOf" : [
{
"type" : "string"
} ,
{
"instanceof" : "Function" ,
"tsType" : "Function"
}
]
}
}
}
]
} ,
"OptimizationRuntimeChunkNormalized" : {
"description" : "Create an additional chunk which contains only the webpack runtime and chunk hash maps" ,
"oneOf" : [
{
"enum" : [ false ]
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"name" : {
"description" : "The name factory for the runtime chunks" ,
"instanceof" : "Function" ,
"tsType" : "Function"
}
}
}
]
} ,
2018-12-11 03:50:37 +08:00
"OptimizationSplitChunksCacheGroup" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for describing behavior of a cache group selecting modules that should be cached together" ,
2018-12-11 03:50:37 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "A function returning cache groups" ,
2018-12-12 17:46:44 +08:00
"instanceof" : "Function" ,
"tsType" : "((module: import('../lib/Module')) => OptimizationSplitChunksCacheGroup | OptimizationSplitChunksCacheGroup[] | void)"
} ,
2018-09-21 18:08:54 +08:00
"OptimizationSplitChunksOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for splitting chunks into smaller chunks" ,
2018-09-21 18:08:54 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "Size description for limits" ,
2018-12-04 23:40:06 +08:00
"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"
}
}
]
} ,
2020-02-17 17:27:46 +08:00
"Output" : {
"description" : "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk." ,
2018-09-21 18:08:54 +08:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2019-07-16 19:16:27 +08:00
"assetModuleFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/AssetModuleFilename"
2019-07-16 19:16:27 +08:00
} ,
2018-09-21 18:08:54 +08:00
"auxiliaryComment" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/AuxiliaryComment"
2018-09-21 18:08:54 +08:00
} ,
"chunkCallbackName" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/ChunkCallbackName"
2018-09-21 18:08:54 +08:00
} ,
"chunkFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/ChunkFilename"
2018-09-21 18:08:54 +08:00
} ,
"chunkLoadTimeout" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/ChunkLoadTimeout"
2018-09-21 18:08:54 +08:00
} ,
2019-11-04 23:46:45 +08:00
"compareBeforeEmit" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/CompareBeforeEmit"
2019-11-04 23:46:45 +08:00
} ,
2018-09-21 18:08:54 +08:00
"crossOriginLoading" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/CrossOriginLoading"
2018-09-21 18:08:54 +08:00
} ,
"devtoolFallbackModuleFilenameTemplate" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/DevtoolFallbackModuleFilenameTemplate"
2018-09-21 18:08:54 +08:00
} ,
"devtoolModuleFilenameTemplate" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/DevtoolModuleFilenameTemplate"
2018-09-21 18:08:54 +08:00
} ,
"devtoolNamespace" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/DevtoolNamespace"
2018-09-21 18:08:54 +08:00
} ,
2019-08-27 02:21:07 +08:00
"ecmaVersion" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/EcmaVersion"
} ,
"enabledLibraryTypes" : {
"$ref" : "#/definitions/EnabledLibraryTypes"
2019-08-27 02:21:07 +08:00
} ,
2018-09-21 18:08:54 +08:00
"filename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/Filename"
2018-09-21 18:08:54 +08:00
} ,
"globalObject" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/GlobalObject"
2018-09-21 18:08:54 +08:00
} ,
"hashDigest" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HashDigest"
2018-09-21 18:08:54 +08:00
} ,
"hashDigestLength" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HashDigestLength"
2018-09-21 18:08:54 +08:00
} ,
"hashFunction" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HashFunction"
2016-09-19 06:54:35 +08:00
} ,
2017-04-15 23:39:49 +08:00
"hashSalt" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HashSalt"
2017-04-15 23:39:49 +08:00
} ,
2016-09-19 06:54:35 +08:00
"hotUpdateChunkFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HotUpdateChunkFilename"
2016-09-19 06:54:35 +08:00
} ,
"hotUpdateFunction" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HotUpdateFunction"
2016-09-19 06:54:35 +08:00
} ,
"hotUpdateMainFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/HotUpdateMainFilename"
2016-09-19 06:54:35 +08:00
} ,
2019-10-09 04:29:46 +08:00
"iife" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/Iife"
2019-10-09 04:29:46 +08:00
} ,
2016-09-19 06:54:35 +08:00
"jsonpFunction" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/JsonpFunction"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 17:54:35 +08:00
"jsonpScriptType" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/JsonpScriptType"
2017-11-21 19:57:11 +08:00
} ,
2016-09-19 06:54:35 +08:00
"library" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/Library"
2018-09-21 17:54:35 +08:00
} ,
"libraryExport" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/LibraryExport"
2016-09-19 06:54:35 +08:00
} ,
"libraryTarget" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/LibraryType"
2016-09-19 06:54:35 +08:00
} ,
2019-10-09 04:29:46 +08:00
"module" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/OutputModule"
2019-10-09 04:29:46 +08:00
} ,
2016-09-19 06:54:35 +08:00
"path" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/Path"
2016-09-19 06:54:35 +08:00
} ,
"pathinfo" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/Pathinfo"
2016-09-19 06:54:35 +08:00
} ,
"publicPath" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/PublicPath"
2016-09-19 06:54:35 +08:00
} ,
"sourceMapFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/SourceMapFilename"
2016-09-19 06:54:35 +08:00
} ,
"sourcePrefix" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/SourcePrefix"
2016-09-19 06:54:35 +08:00
} ,
2016-11-10 15:52:00 +08:00
"strictModuleExceptionHandling" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/StrictModuleExceptionHandling"
2016-11-10 15:52:00 +08:00
} ,
2016-09-19 06:54:35 +08:00
"umdNamedDefine" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/UmdNamedDefine"
2018-09-21 17:54:35 +08:00
} ,
2020-02-26 22:50:38 +08:00
"uniqueName" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/UniqueName"
2020-02-26 22:50:38 +08:00
} ,
2018-09-21 17:54:35 +08:00
"webassemblyModuleFilename" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/WebassemblyModuleFilename"
}
}
} ,
"OutputModule" : {
"description" : "Output javascript files as module source type." ,
"type" : "boolean"
} ,
"OutputNormalized" : {
"description" : "Normalized options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk." ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"assetModuleFilename" : {
"$ref" : "#/definitions/AssetModuleFilename"
} ,
"chunkCallbackName" : {
"$ref" : "#/definitions/ChunkCallbackName"
} ,
"chunkFilename" : {
"$ref" : "#/definitions/ChunkFilename"
} ,
"chunkLoadTimeout" : {
"$ref" : "#/definitions/ChunkLoadTimeout"
} ,
"compareBeforeEmit" : {
"$ref" : "#/definitions/CompareBeforeEmit"
} ,
"crossOriginLoading" : {
"$ref" : "#/definitions/CrossOriginLoading"
} ,
"devtoolFallbackModuleFilenameTemplate" : {
"$ref" : "#/definitions/DevtoolFallbackModuleFilenameTemplate"
} ,
"devtoolModuleFilenameTemplate" : {
"$ref" : "#/definitions/DevtoolModuleFilenameTemplate"
} ,
"devtoolNamespace" : {
"$ref" : "#/definitions/DevtoolNamespace"
} ,
"ecmaVersion" : {
"$ref" : "#/definitions/EcmaVersion"
} ,
"enabledLibraryTypes" : {
"$ref" : "#/definitions/EnabledLibraryTypes"
} ,
"filename" : {
"$ref" : "#/definitions/Filename"
} ,
"globalObject" : {
"$ref" : "#/definitions/GlobalObject"
} ,
"hashDigest" : {
"$ref" : "#/definitions/HashDigest"
} ,
"hashDigestLength" : {
"$ref" : "#/definitions/HashDigestLength"
} ,
"hashFunction" : {
"$ref" : "#/definitions/HashFunction"
} ,
"hashSalt" : {
"$ref" : "#/definitions/HashSalt"
} ,
"hotUpdateChunkFilename" : {
"$ref" : "#/definitions/HotUpdateChunkFilename"
} ,
"hotUpdateFunction" : {
"$ref" : "#/definitions/HotUpdateFunction"
} ,
"hotUpdateMainFilename" : {
"$ref" : "#/definitions/HotUpdateMainFilename"
} ,
"iife" : {
"$ref" : "#/definitions/Iife"
} ,
"jsonpFunction" : {
"$ref" : "#/definitions/JsonpFunction"
} ,
"jsonpScriptType" : {
"$ref" : "#/definitions/JsonpScriptType"
} ,
"library" : {
"$ref" : "#/definitions/LibraryOptions"
} ,
"module" : {
"$ref" : "#/definitions/OutputModule"
} ,
"path" : {
"$ref" : "#/definitions/Path"
} ,
"pathinfo" : {
"$ref" : "#/definitions/Pathinfo"
} ,
"publicPath" : {
"$ref" : "#/definitions/PublicPath"
} ,
"sourceMapFilename" : {
"$ref" : "#/definitions/SourceMapFilename"
} ,
"sourcePrefix" : {
"$ref" : "#/definitions/SourcePrefix"
} ,
"strictModuleExceptionHandling" : {
"$ref" : "#/definitions/StrictModuleExceptionHandling"
} ,
"uniqueName" : {
"$ref" : "#/definitions/UniqueName"
} ,
"webassemblyModuleFilename" : {
"$ref" : "#/definitions/WebassemblyModuleFilename"
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-19 06:54:35 +08:00
} ,
2020-02-17 17:27:46 +08:00
"Parallelism" : {
"description" : "The number of parallel processed modules in the compilation." ,
"type" : "number" ,
"minimum" : 1
} ,
2020-02-20 03:25:49 +08:00
"Path" : {
"description" : "The output directory as **absolute path** (required)." ,
"type" : "string" ,
"absolutePath" : true
} ,
"Pathinfo" : {
"description" : "Include comments with information about the modules." ,
"type" : "boolean"
} ,
2020-02-17 17:27:46 +08:00
"Performance" : {
2020-02-17 19:14:51 +08:00
"description" : "Configuration for web performance recommendations" ,
2020-02-17 17:27:46 +08:00
"anyOf" : [
{
"enum" : [ false ]
} ,
{
"$ref" : "#/definitions/PerformanceOptions"
}
]
} ,
2018-09-21 18:08:54 +08:00
"PerformanceOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Configuration object for web performance recommendations" ,
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"
}
}
} ,
2020-02-17 17:27:46 +08:00
"Plugins" : {
"description" : "Add additional plugins to the compiler." ,
"type" : "array" ,
"items" : {
"description" : "Plugin of type object or instanceof Function" ,
"anyOf" : [
{
"$ref" : "#/definitions/WebpackPluginInstance"
} ,
{
"$ref" : "#/definitions/WebpackPluginFunction"
}
]
}
} ,
"Profile" : {
"description" : "Capture timing information for each module." ,
"type" : "boolean"
} ,
2020-02-20 03:25:49 +08:00
"PublicPath" : {
"description" : "The `publicPath` specifies the public URL address of the output files when referenced in a browser." ,
"anyOf" : [
{
"type" : "string"
} ,
{
"instanceof" : "Function" ,
"tsType" : "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
}
]
} ,
2020-02-17 17:27:46 +08:00
"RecordsInputPath" : {
"description" : "Store compiler state to a json file." ,
"oneOf" : [
{
"enum" : [ false ]
} ,
{
"type" : "string" ,
"absolutePath" : true
}
]
} ,
"RecordsOutputPath" : {
"description" : "Load compiler state from a json file." ,
"oneOf" : [
{
"enum" : [ false ]
} ,
{
"type" : "string" ,
"absolutePath" : true
}
]
} ,
"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." ,
"oneOf" : [
{
"enum" : [ false ]
} ,
{
"type" : "string" ,
"absolutePath" : true
}
]
} ,
"Resolve" : {
"description" : "Options for the resolver" ,
"anyOf" : [
{
"$ref" : "#/definitions/ResolveOptions"
}
]
} ,
"ResolveLoader" : {
"description" : "Options for the resolver when resolving loaders" ,
"anyOf" : [
{
"$ref" : "#/definitions/ResolveOptions"
}
]
} ,
"ResolveOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Options object for resolving requests" ,
2020-02-17 17:27:46 +08:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"alias" : {
"description" : "Redirect module requests" ,
"anyOf" : [
{
"type" : "object" ,
"additionalProperties" : {
"description" : "New request" ,
"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 ]
}
]
}
} ,
{
"type" : "array" ,
"items" : {
"description" : "Alias configuration" ,
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"alias" : {
"description" : "New request" ,
"oneOf" : [
{
"description" : "New request" ,
"type" : "string" ,
"minLength" : 1
} ,
{
"description" : "Multiple alternative requests" ,
"type" : "array" ,
"items" : {
2019-07-08 22:11:43 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "A condition matcher" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "A condition matcher matching an absolute path" ,
2018-09-21 18:16:33 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "One or multiple rule conditions matching an absolute path" ,
2018-09-21 18:16:33 +08:00
"anyOf" : [
{
"$ref" : "#/definitions/RuleSetConditionAbsolute"
} ,
{
"$ref" : "#/definitions/RuleSetConditionsAbsolute"
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetConditions" : {
2020-02-17 19:14:51 +08:00
"description" : "A list of rule conditions" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "A list of rule conditions matching an absolute path" ,
2018-09-21 18:16:33 +08:00
"type" : "array" ,
"items" : {
2020-02-17 19:14:51 +08:00
"description" : "A rule condition matching an absolute path" ,
2018-09-21 18:16:33 +08:00
"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" : {
2020-02-17 19:14:51 +08:00
"description" : "A loader request" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "Options passed to a loader" ,
2016-09-20 18:36:08 +08:00
"anyOf" : [
{
"type" : "object"
} ,
{
"type" : "string"
}
]
} ,
2018-09-21 18:08:54 +08:00
"RuleSetRule" : {
2020-02-17 19:14:51 +08:00
"description" : "A rule description with conditions and effects for modules" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "A list of rules" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "A list of descriptions of loaders applied" ,
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" : {
2020-02-17 19:14:51 +08:00
"description" : "A description of an applied 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
} ,
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
} ,
2020-02-20 03:25:49 +08:00
"SourceMapFilename" : {
"description" : "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory." ,
"type" : "string" ,
"absolutePath" : false
} ,
"SourcePrefix" : {
"description" : "Prefixes every line of the source in the bundle with this string." ,
"type" : "string"
} ,
2020-02-17 17:27:46 +08:00
"Stats" : {
2020-02-17 19:14:51 +08:00
"description" : "Stats options object or preset name" ,
2020-02-17 17:27:46 +08:00
"anyOf" : [
{
"$ref" : "#/definitions/StatsOptions"
} ,
{
"type" : "boolean"
} ,
{
"enum" : [
"none" ,
"errors-only" ,
"minimal" ,
"normal" ,
"detailed" ,
"verbose" ,
"errors-warnings"
]
}
]
} ,
2018-09-21 18:08:54 +08:00
"StatsOptions" : {
2020-02-17 19:14:51 +08:00
"description" : "Stats options object" ,
2018-09-21 18:08:54 +08:00
"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"
}
]
}
}
} ,
2020-02-20 03:25:49 +08:00
"StrictModuleExceptionHandling" : {
"description" : "Handles exceptions in module loading correctly at a performance cost." ,
"type" : "boolean"
} ,
2020-02-17 17:27:46 +08:00
"Target" : {
"description" : "Environment to build for" ,
"anyOf" : [
{
"enum" : [
"web" ,
"webworker" ,
"node" ,
"async-node" ,
"node-webkit" ,
"electron-main" ,
"electron-renderer" ,
"electron-preload"
]
} ,
{
"instanceof" : "Function" ,
"tsType" : "((compiler: import('../lib/Compiler')) => void)"
}
]
} ,
2020-02-20 03:25:49 +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"
} ,
"UniqueName" : {
"description" : "A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals." ,
"type" : "string" ,
"minLength" : 1
} ,
2020-02-17 17:27:46 +08:00
"Watch" : {
"description" : "Enter watch mode, which rebuilds on file change." ,
"type" : "boolean"
} ,
2018-12-10 18:34:59 +08:00
"WatchOptions" : {
2020-02-17 17:27:46 +08:00
"description" : "Options for the watcher" ,
2018-12-10 18:34:59 +08:00
"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"
}
}
} ,
2020-02-20 03:25:49 +08:00
"WebassemblyModuleFilename" : {
"description" : "The filename of WebAssembly modules as relative path inside the `output.path` directory." ,
"type" : "string" ,
"absolutePath" : false
} ,
2020-02-17 17:27:46 +08:00
"WebpackOptionsNormalized" : {
2020-02-17 19:14:51 +08:00
"description" : "Normalized webpack options object" ,
2020-02-17 17:27:46 +08:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"amd" : {
"$ref" : "#/definitions/Amd"
} ,
"bail" : {
"$ref" : "#/definitions/Bail"
} ,
"cache" : {
"$ref" : "#/definitions/CacheNormalized"
} ,
"context" : {
"$ref" : "#/definitions/Context"
} ,
"dependencies" : {
"$ref" : "#/definitions/Dependencies"
} ,
"devServer" : {
"$ref" : "#/definitions/DevServer"
} ,
"devtool" : {
"$ref" : "#/definitions/DevTool"
} ,
"entry" : {
"$ref" : "#/definitions/EntryNormalized"
} ,
"experiments" : {
"$ref" : "#/definitions/Experiments"
} ,
"externals" : {
"$ref" : "#/definitions/Externals"
} ,
2020-02-18 17:44:55 +08:00
"externalsType" : {
"$ref" : "#/definitions/ExternalsType"
} ,
2020-02-17 17:27:46 +08:00
"infrastructureLogging" : {
"$ref" : "#/definitions/InfrastructureLogging"
} ,
"loader" : {
"$ref" : "#/definitions/Loader"
} ,
"mode" : {
"$ref" : "#/definitions/Mode"
} ,
"module" : {
"$ref" : "#/definitions/Module"
} ,
"name" : {
"$ref" : "#/definitions/Name"
} ,
"node" : {
"$ref" : "#/definitions/Node"
} ,
"optimization" : {
"$ref" : "#/definitions/Optimization"
} ,
"output" : {
2020-02-20 03:25:49 +08:00
"$ref" : "#/definitions/OutputNormalized"
2020-02-17 17:27:46 +08:00
} ,
"parallelism" : {
"$ref" : "#/definitions/Parallelism"
} ,
"performance" : {
"$ref" : "#/definitions/Performance"
} ,
"plugins" : {
"$ref" : "#/definitions/Plugins"
} ,
"profile" : {
"$ref" : "#/definitions/Profile"
} ,
"recordsInputPath" : {
"$ref" : "#/definitions/RecordsInputPath"
} ,
"recordsOutputPath" : {
"$ref" : "#/definitions/RecordsOutputPath"
} ,
"resolve" : {
"$ref" : "#/definitions/Resolve"
} ,
"resolveLoader" : {
"$ref" : "#/definitions/ResolveLoader"
} ,
"stats" : {
"$ref" : "#/definitions/Stats"
} ,
"target" : {
"$ref" : "#/definitions/Target"
} ,
"watch" : {
"$ref" : "#/definitions/Watch"
} ,
"watchOptions" : {
"$ref" : "#/definitions/WatchOptions"
}
} ,
"required" : [
"cache" ,
"entry" ,
"experiments" ,
"externals" ,
"infrastructureLogging" ,
"module" ,
"node" ,
"optimization" ,
"output" ,
"plugins" ,
"resolve" ,
"resolveLoader" ,
"stats" ,
"watchOptions"
]
} ,
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
}
} ,
2020-02-17 19:14:51 +08:00
"description" : "webpack options object as provided by the user" ,
2018-09-21 17:54:35 +08:00
"type" : "object" ,
"additionalProperties" : false ,
2016-09-19 06:54:35 +08:00
"properties" : {
"amd" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Amd"
2016-09-19 06:54:35 +08:00
} ,
"bail" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Bail"
2016-09-19 06:54:35 +08:00
} ,
"cache" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Cache"
2016-09-19 06:54:35 +08:00
} ,
"context" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Context"
2016-09-19 06:54:35 +08:00
} ,
2016-09-20 18:36:08 +08:00
"dependencies" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Dependencies"
2016-09-20 18:36:08 +08:00
} ,
2016-09-19 06:54:35 +08:00
"devServer" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/DevServer"
2016-09-19 06:54:35 +08:00
} ,
"devtool" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/DevTool"
2016-09-19 06:54:35 +08:00
} ,
"entry" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Entry"
2016-09-19 06:54:35 +08:00
} ,
2019-06-04 17:26:04 +08:00
"experiments" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Experiments"
2019-06-04 17:26:04 +08:00
} ,
2016-09-19 06:54:35 +08:00
"externals" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Externals"
2016-09-19 06:54:35 +08:00
} ,
2020-02-18 17:44:55 +08:00
"externalsType" : {
"$ref" : "#/definitions/ExternalsType"
} ,
2019-07-22 14:23:40 +08:00
"infrastructureLogging" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/InfrastructureLogging"
2019-07-22 14:23:40 +08:00
} ,
2016-09-19 06:54:35 +08:00
"loader" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Loader"
2016-09-19 06:54:35 +08:00
} ,
2018-09-21 17:54:35 +08:00
"mode" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Mode"
2018-09-21 17:54:35 +08:00
} ,
2016-09-19 06:54:35 +08:00
"module" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Module"
2016-09-19 06:54:35 +08:00
} ,
"name" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Name"
2016-09-19 06:54:35 +08:00
} ,
"node" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Node"
2016-09-19 06:54:35 +08:00
} ,
2017-11-21 17:41:01 +08:00
"optimization" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Optimization"
2018-09-21 18:08:54 +08:00
} ,
"output" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Output"
2018-09-21 18:08:54 +08:00
} ,
"parallelism" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Parallelism"
2018-09-21 18:08:54 +08:00
} ,
"performance" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Performance"
2016-11-04 02:02:34 +08:00
} ,
2016-09-19 06:54:35 +08:00
"plugins" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Plugins"
2016-09-19 06:54:35 +08:00
} ,
"profile" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Profile"
2016-09-19 06:54:35 +08:00
} ,
"recordsInputPath" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/RecordsInputPath"
2016-09-19 06:54:35 +08:00
} ,
"recordsOutputPath" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/RecordsOutputPath"
2016-09-19 06:54:35 +08:00
} ,
"recordsPath" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/RecordsPath"
2016-09-19 06:54:35 +08:00
} ,
"resolve" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Resolve"
2016-09-19 06:54:35 +08:00
} ,
"resolveLoader" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/ResolveLoader"
2016-09-19 06:54:35 +08:00
} ,
"stats" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Stats"
2016-09-19 06:54:35 +08:00
} ,
"target" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Target"
2016-09-19 06:54:35 +08:00
} ,
"watch" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/Watch"
2016-09-19 06:54:35 +08:00
} ,
"watchOptions" : {
2020-02-17 17:27:46 +08:00
"$ref" : "#/definitions/WatchOptions"
2016-09-19 06:54:35 +08:00
}
2018-09-21 17:54:35 +08:00
}
2016-09-09 00:40:54 +08:00
}