Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

optionsSchema.json 65KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989
  1. {
  2. "additionalProperties": false,
  3. "definitions": {
  4. "common.pluginFunction": {
  5. "description": "Function acting as plugin",
  6. "instanceof": "Function",
  7. "properties": {
  8. "apply": {
  9. "description": "The run point of the plugin, required method.",
  10. "instanceof": "Function"
  11. }
  12. },
  13. "additionalProperties": true,
  14. "required": [
  15. "apply"
  16. ]
  17. },
  18. "common.pluginObject": {
  19. "description": "Plugin instance",
  20. "type": "object",
  21. "properties": {
  22. "apply": {
  23. "description": "The run point of the plugin, required method.",
  24. "instanceof": "Function"
  25. }
  26. },
  27. "additionalProperties": true,
  28. "required": [
  29. "apply"
  30. ]
  31. },
  32. "common.arrayOfStringOrStringArrayValues": {
  33. "items": {
  34. "description": "string or array of strings",
  35. "anyOf": [
  36. {
  37. "minLength": 1,
  38. "type": "string"
  39. },
  40. {
  41. "items": {
  42. "description": "A non-empty string",
  43. "minLength": 1,
  44. "type": "string"
  45. },
  46. "type": "array"
  47. }
  48. ]
  49. },
  50. "type": "array"
  51. },
  52. "common.arrayOfStringValues": {
  53. "items": {
  54. "description": "A non-empty string",
  55. "minLength": 1,
  56. "type": "string"
  57. },
  58. "type": "array"
  59. },
  60. "common.nonEmptyArrayOfUniqueStringValues": {
  61. "items": {
  62. "description": "A non-empty string",
  63. "minLength": 1,
  64. "type": "string"
  65. },
  66. "minItems": 1,
  67. "type": "array",
  68. "uniqueItems": true
  69. },
  70. "entry": {
  71. "oneOf": [
  72. {
  73. "minProperties": 1,
  74. "additionalProperties": {
  75. "description": "An entry point with name",
  76. "oneOf": [
  77. {
  78. "description": "The string is resolved to a module which is loaded upon startup.",
  79. "minLength": 1,
  80. "type": "string"
  81. },
  82. {
  83. "description": "All modules are loaded upon startup. The last one is exported.",
  84. "anyOf": [
  85. {
  86. "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
  87. }
  88. ]
  89. }
  90. ]
  91. },
  92. "description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
  93. "type": "object"
  94. },
  95. {
  96. "description": "An entry point without name. The string is resolved to a module which is loaded upon startup.",
  97. "minLength": 1,
  98. "type": "string"
  99. },
  100. {
  101. "description": "An entry point without name. All modules are loaded upon startup. The last one is exported.",
  102. "anyOf": [
  103. {
  104. "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
  105. }
  106. ]
  107. },
  108. {
  109. "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
  110. "instanceof": "Function"
  111. }
  112. ]
  113. },
  114. "externals": {
  115. "anyOf": [
  116. {
  117. "description": "An exact matched dependency becomes external. The same string is used as external dependency.",
  118. "type": "string"
  119. },
  120. {
  121. "additionalProperties": {
  122. "description": "The dependency used for the external",
  123. "anyOf": [
  124. {
  125. "type": "string"
  126. },
  127. {
  128. "type": "object"
  129. },
  130. {
  131. "type": "boolean"
  132. }
  133. ]
  134. },
  135. "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.",
  136. "type": "object"
  137. },
  138. {
  139. "description": "`function(context, request, callback(err, result))` The function is called on each dependency.",
  140. "instanceof": "Function"
  141. },
  142. {
  143. "description": "Every matched dependency becomes external.",
  144. "instanceof": "RegExp"
  145. },
  146. {
  147. "items": {
  148. "description": "External configuration",
  149. "anyOf": [
  150. {
  151. "$ref": "#/definitions/externals"
  152. }
  153. ]
  154. },
  155. "type": "array"
  156. }
  157. ]
  158. },
  159. "module": {
  160. "additionalProperties": false,
  161. "properties": {
  162. "exprContextCritical": {
  163. "description": "Enable warnings for full dynamic dependencies",
  164. "type": "boolean"
  165. },
  166. "exprContextRecursive": {
  167. "description": "Enable recursive directory lookup for full dynamic dependencies",
  168. "type": "boolean"
  169. },
  170. "exprContextRegExp": {
  171. "description": "Sets the default regular expression for full dynamic dependencies",
  172. "anyOf": [
  173. {
  174. "type": "boolean"
  175. },
  176. {
  177. "instanceof": "RegExp"
  178. }
  179. ]
  180. },
  181. "exprContextRequest": {
  182. "description": "Set the default request for full dynamic dependencies",
  183. "type": "string"
  184. },
  185. "noParse": {
  186. "description": "Don't parse files matching. It's matched against the full resolved request.",
  187. "anyOf": [
  188. {
  189. "items": {
  190. "description": "A regular expression, when matched the module is not parsed",
  191. "instanceof": "RegExp"
  192. },
  193. "minItems": 1,
  194. "type": "array"
  195. },
  196. {
  197. "instanceof": "RegExp"
  198. },
  199. {
  200. "instanceof": "Function"
  201. },
  202. {
  203. "items": {
  204. "description": "An absolute path, when the module starts with this path it is not parsed",
  205. "type": "string",
  206. "absolutePath": true
  207. },
  208. "minItems": 1,
  209. "type": "array"
  210. },
  211. {
  212. "type": "string",
  213. "absolutePath": true
  214. }
  215. ]
  216. },
  217. "rules": {
  218. "allOf": [
  219. {
  220. "$ref": "#/definitions/ruleSet-rules"
  221. }
  222. ],
  223. "description": "An array of rules applied for modules."
  224. },
  225. "defaultRules": {
  226. "description": "An array of rules applied by default for modules.",
  227. "anyOf": [
  228. {
  229. "$ref": "#/definitions/ruleSet-rules"
  230. }
  231. ]
  232. },
  233. "unknownContextCritical": {
  234. "description": "Enable warnings when using the require function in a not statically analyse-able way",
  235. "type": "boolean"
  236. },
  237. "unknownContextRecursive": {
  238. "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way",
  239. "type": "boolean"
  240. },
  241. "unknownContextRegExp": {
  242. "description": "Sets the regular expression when using the require function in a not statically analyse-able way",
  243. "anyOf": [
  244. {
  245. "type": "boolean"
  246. },
  247. {
  248. "instanceof": "RegExp"
  249. }
  250. ]
  251. },
  252. "unknownContextRequest": {
  253. "description": "Sets the request when using the require function in a not statically analyse-able way",
  254. "type": "string"
  255. },
  256. "unsafeCache": {
  257. "description": "Cache the resolving of module requests",
  258. "anyOf": [
  259. {
  260. "type": "boolean"
  261. },
  262. {
  263. "instanceof": "Function"
  264. }
  265. ]
  266. },
  267. "wrappedContextCritical": {
  268. "description": "Enable warnings for partial dynamic dependencies",
  269. "type": "boolean"
  270. },
  271. "wrappedContextRecursive": {
  272. "description": "Enable recursive directory lookup for partial dynamic dependencies",
  273. "type": "boolean"
  274. },
  275. "wrappedContextRegExp": {
  276. "description": "Set the inner regular expression for partial dynamic dependencies",
  277. "instanceof": "RegExp"
  278. },
  279. "strictExportPresence": {
  280. "description": "Emit errors instead of warnings when imported names don't exist in imported module",
  281. "type": "boolean"
  282. },
  283. "strictThisContextOnImports": {
  284. "description": "Handle the this context correctly according to the spec for namespace objects",
  285. "type": "boolean"
  286. }
  287. },
  288. "type": "object"
  289. },
  290. "output": {
  291. "additionalProperties": false,
  292. "properties": {
  293. "auxiliaryComment": {
  294. "description": "Add a comment in the UMD wrapper.",
  295. "anyOf": [
  296. {
  297. "description": "Append the same comment above each import style.",
  298. "type": "string"
  299. },
  300. {
  301. "additionalProperties": false,
  302. "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
  303. "properties": {
  304. "amd": {
  305. "description": "Set comment for `amd` section in UMD",
  306. "type": "string"
  307. },
  308. "commonjs": {
  309. "description": "Set comment for `commonjs` (exports) section in UMD",
  310. "type": "string"
  311. },
  312. "commonjs2": {
  313. "description": "Set comment for `commonjs2` (module.exports) section in UMD",
  314. "type": "string"
  315. },
  316. "root": {
  317. "description": "Set comment for `root` (global variable) section in UMD",
  318. "type": "string"
  319. }
  320. },
  321. "type": "object"
  322. }
  323. ]
  324. },
  325. "chunkFilename": {
  326. "description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
  327. "type": "string",
  328. "absolutePath": false
  329. },
  330. "webassemblyModuleFilename": {
  331. "description": "The filename of WebAssembly modules as relative path inside the `output.path` directory.",
  332. "type": "string",
  333. "absolutePath": false
  334. },
  335. "globalObject": {
  336. "description": "An expression which is used to address the global object/scope in runtime code",
  337. "type": "string",
  338. "minLength": 1
  339. },
  340. "crossOriginLoading": {
  341. "description": "This option enables cross-origin loading of chunks.",
  342. "enum": [
  343. false,
  344. "anonymous",
  345. "use-credentials"
  346. ]
  347. },
  348. "jsonpScriptType": {
  349. "description": "This option enables loading async chunks via a custom script type, such as script type=\"module\"",
  350. "enum": [
  351. false,
  352. "text/javascript",
  353. "module"
  354. ]
  355. },
  356. "chunkLoadTimeout": {
  357. "description": "Number of milliseconds before chunk request expires",
  358. "type": "number"
  359. },
  360. "devtoolFallbackModuleFilenameTemplate": {
  361. "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.",
  362. "anyOf": [
  363. {
  364. "type": "string"
  365. },
  366. {
  367. "instanceof": "Function"
  368. }
  369. ]
  370. },
  371. "devtoolLineToLine": {
  372. "description": "Enable line to line mapped mode for all/specified modules. Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It’s a performance optimization. Only use it if your performance need to be better and you are sure that input lines match which generated lines.",
  373. "anyOf": [
  374. {
  375. "description": "`true` enables it for all modules (not recommended)",
  376. "type": "boolean"
  377. },
  378. {
  379. "description": "An object similar to `module.loaders` enables it for specific files.",
  380. "type": "object"
  381. }
  382. ]
  383. },
  384. "devtoolModuleFilenameTemplate": {
  385. "description": "Filename template string of function for the sources array in a generated SourceMap.",
  386. "anyOf": [
  387. {
  388. "type": "string"
  389. },
  390. {
  391. "instanceof": "Function"
  392. }
  393. ]
  394. },
  395. "devtoolNamespace": {
  396. "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.",
  397. "type": "string"
  398. },
  399. "filename": {
  400. "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.",
  401. "anyOf": [
  402. {
  403. "type": "string"
  404. },
  405. {
  406. "instanceof": "Function"
  407. }
  408. ],
  409. "absolutePath": false
  410. },
  411. "hashDigest": {
  412. "description": "Digest type used for the hash",
  413. "enum": [
  414. "latin1",
  415. "hex",
  416. "base64"
  417. ]
  418. },
  419. "hashDigestLength": {
  420. "description": "Number of chars which are used for the hash",
  421. "minimum": 1,
  422. "type": "number"
  423. },
  424. "hashFunction": {
  425. "description": "Algorithm used for generation the hash (see node.js crypto package)",
  426. "anyOf": [
  427. {
  428. "type": "string",
  429. "minLength": 1
  430. },
  431. {
  432. "instanceof": "Function"
  433. }
  434. ]
  435. },
  436. "hashSalt": {
  437. "description": "Any string which is added to the hash to salt it",
  438. "minLength": 1,
  439. "type": "string"
  440. },
  441. "hotUpdateChunkFilename": {
  442. "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
  443. "anyOf": [
  444. {
  445. "type": "string"
  446. },
  447. {
  448. "instanceof": "Function"
  449. }
  450. ],
  451. "absolutePath": false
  452. },
  453. "hotUpdateFunction": {
  454. "description": "The JSONP function used by webpack for async loading of hot update chunks.",
  455. "type": "string"
  456. },
  457. "hotUpdateMainFilename": {
  458. "description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
  459. "anyOf": [
  460. {
  461. "type": "string"
  462. },
  463. {
  464. "instanceof": "Function"
  465. }
  466. ],
  467. "absolutePath": false
  468. },
  469. "jsonpFunction": {
  470. "description": "The JSONP function used by webpack for async loading of chunks.",
  471. "type": "string"
  472. },
  473. "chunkCallbackName": {
  474. "description": "The callback function name used by webpack for loading of chunks in WebWorkers.",
  475. "type": "string"
  476. },
  477. "library": {
  478. "anyOf": [
  479. {
  480. "type": "string"
  481. },
  482. {
  483. "items": {
  484. "description": "A part of the library name",
  485. "type": "string"
  486. },
  487. "type": "array"
  488. },
  489. {
  490. "type": "object",
  491. "additionalProperties": false,
  492. "properties": {
  493. "root": {
  494. "description": "Name of the property exposed globally by a UMD library",
  495. "anyOf": [
  496. {
  497. "type": "string"
  498. },
  499. {
  500. "$ref": "#/definitions/common.arrayOfStringValues"
  501. }
  502. ]
  503. },
  504. "amd": {
  505. "description": "Name of the exposed AMD library in the UMD",
  506. "type": "string"
  507. },
  508. "commonjs": {
  509. "description": "Name of the exposed commonjs export in the UMD",
  510. "type": "string"
  511. }
  512. }
  513. }
  514. ],
  515. "description": "If set, export the bundle as library. `output.library` is the name."
  516. },
  517. "libraryTarget": {
  518. "description": "Type of library",
  519. "enum": [
  520. "var",
  521. "assign",
  522. "this",
  523. "window",
  524. "self",
  525. "global",
  526. "commonjs",
  527. "commonjs2",
  528. "commonjs-module",
  529. "amd",
  530. "umd",
  531. "umd2",
  532. "jsonp"
  533. ]
  534. },
  535. "libraryExport": {
  536. "description": "Specify which export should be exposed as library",
  537. "anyOf": [
  538. {
  539. "type": "string"
  540. },
  541. {
  542. "$ref": "#/definitions/common.arrayOfStringValues"
  543. }
  544. ]
  545. },
  546. "path": {
  547. "description": "The output directory as **absolute path** (required).",
  548. "type": "string",
  549. "absolutePath": true
  550. },
  551. "pathinfo": {
  552. "description": "Include comments with information about the modules.",
  553. "type": "boolean"
  554. },
  555. "publicPath": {
  556. "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
  557. "anyOf": [
  558. {
  559. "type": "string"
  560. },
  561. {
  562. "instanceof": "Function"
  563. }
  564. ]
  565. },
  566. "sourceMapFilename": {
  567. "description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
  568. "type": "string",
  569. "absolutePath": false
  570. },
  571. "sourcePrefix": {
  572. "description": "Prefixes every line of the source in the bundle with this string.",
  573. "type": "string"
  574. },
  575. "strictModuleExceptionHandling": {
  576. "description": "Handles exceptions in module loading correctly at a performance cost.",
  577. "type": "boolean"
  578. },
  579. "umdNamedDefine": {
  580. "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
  581. "type": "boolean"
  582. }
  583. },
  584. "type": "object"
  585. },
  586. "resolve": {
  587. "additionalProperties": false,
  588. "properties": {
  589. "alias": {
  590. "description": "Redirect module requests",
  591. "anyOf": [
  592. {
  593. "additionalProperties": {
  594. "description": "New request",
  595. "type": "string"
  596. },
  597. "type": "object"
  598. },
  599. {
  600. "items": {
  601. "description": "Alias configuration",
  602. "additionalProperties": false,
  603. "properties": {
  604. "alias": {
  605. "description": "New request",
  606. "type": "string"
  607. },
  608. "name": {
  609. "description": "Request to be redirected",
  610. "type": "string"
  611. },
  612. "onlyModule": {
  613. "description": "Redirect only exact matching request",
  614. "type": "boolean"
  615. }
  616. },
  617. "type": "object"
  618. },
  619. "type": "array"
  620. }
  621. ]
  622. },
  623. "aliasFields": {
  624. "description": "Fields in the description file (package.json) which are used to redirect requests inside the module",
  625. "anyOf": [
  626. {
  627. "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
  628. }
  629. ]
  630. },
  631. "cachePredicate": {
  632. "description": "Predicate function to decide which requests should be cached",
  633. "instanceof": "Function"
  634. },
  635. "cacheWithContext": {
  636. "description": "Include the context information in the cache identifier when caching",
  637. "type": "boolean"
  638. },
  639. "descriptionFiles": {
  640. "description": "Filenames used to find a description file",
  641. "anyOf": [
  642. {
  643. "$ref": "#/definitions/common.arrayOfStringValues"
  644. }
  645. ]
  646. },
  647. "enforceExtension": {
  648. "description": "Enforce using one of the extensions from the extensions option",
  649. "type": "boolean"
  650. },
  651. "enforceModuleExtension": {
  652. "description": "Enforce using one of the module extensions from the moduleExtensions option",
  653. "type": "boolean"
  654. },
  655. "extensions": {
  656. "description": "Extensions added to the request when trying to find the file",
  657. "anyOf": [
  658. {
  659. "$ref": "#/definitions/common.arrayOfStringValues"
  660. }
  661. ]
  662. },
  663. "fileSystem": {
  664. "description": "Filesystem for the resolver"
  665. },
  666. "mainFields": {
  667. "description": "Field names from the description file (package.json) which are used to find the default entry point",
  668. "anyOf": [
  669. {
  670. "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
  671. }
  672. ]
  673. },
  674. "mainFiles": {
  675. "description": "Filenames used to find the default entry point if there is no description file or main field",
  676. "anyOf": [
  677. {
  678. "$ref": "#/definitions/common.arrayOfStringValues"
  679. }
  680. ]
  681. },
  682. "moduleExtensions": {
  683. "description": "Extensions added to the module request when trying to find the module",
  684. "anyOf": [
  685. {
  686. "$ref": "#/definitions/common.arrayOfStringValues"
  687. }
  688. ]
  689. },
  690. "modules": {
  691. "description": "Folder names or directory paths where to find modules",
  692. "anyOf": [
  693. {
  694. "$ref": "#/definitions/common.arrayOfStringValues"
  695. }
  696. ]
  697. },
  698. "plugins": {
  699. "description": "Plugins for the resolver",
  700. "type": "array",
  701. "items": {
  702. "description": "Plugin of type object or instanceof Function",
  703. "anyOf": [
  704. {
  705. "$ref": "#/definitions/common.pluginObject"
  706. },
  707. {
  708. "$ref": "#/definitions/common.pluginFunction"
  709. }
  710. ]
  711. }
  712. },
  713. "resolver": {
  714. "description": "Custom resolver"
  715. },
  716. "symlinks": {
  717. "description": "Enable resolving symlinks to the original location",
  718. "type": "boolean"
  719. },
  720. "concord": {
  721. "description": "Enable concord resolving extras",
  722. "type": "boolean"
  723. },
  724. "unsafeCache": {
  725. "description": "Enable caching of successfully resolved requests",
  726. "anyOf": [
  727. {
  728. "type": "boolean"
  729. },
  730. {
  731. "additionalProperties": true,
  732. "type": "object"
  733. }
  734. ]
  735. },
  736. "useSyncFileSystemCalls": {
  737. "description": "Use synchronous filesystem calls for the resolver",
  738. "type": "boolean"
  739. }
  740. },
  741. "type": "object"
  742. },
  743. "ruleSet-condition": {
  744. "anyOf": [
  745. {
  746. "instanceof": "RegExp"
  747. },
  748. {
  749. "minLength": 1,
  750. "type": "string"
  751. },
  752. {
  753. "instanceof": "Function"
  754. },
  755. {
  756. "$ref": "#/definitions/ruleSet-conditions"
  757. },
  758. {
  759. "additionalProperties": false,
  760. "properties": {
  761. "and": {
  762. "description": "Logical AND",
  763. "anyOf": [
  764. {
  765. "$ref": "#/definitions/ruleSet-conditions"
  766. }
  767. ]
  768. },
  769. "exclude": {
  770. "description": "Exclude all modules matching any of these conditions",
  771. "anyOf": [
  772. {
  773. "$ref": "#/definitions/ruleSet-condition"
  774. }
  775. ]
  776. },
  777. "include": {
  778. "description": "Exclude all modules matching not any of these conditions",
  779. "anyOf": [
  780. {
  781. "$ref": "#/definitions/ruleSet-condition"
  782. }
  783. ]
  784. },
  785. "not": {
  786. "description": "Logical NOT",
  787. "anyOf": [
  788. {
  789. "$ref": "#/definitions/ruleSet-conditions"
  790. }
  791. ]
  792. },
  793. "or": {
  794. "description": "Logical OR",
  795. "anyOf": [
  796. {
  797. "$ref": "#/definitions/ruleSet-conditions"
  798. }
  799. ]
  800. },
  801. "test": {
  802. "description": "Exclude all modules matching any of these conditions",
  803. "anyOf": [
  804. {
  805. "$ref": "#/definitions/ruleSet-condition"
  806. }
  807. ]
  808. }
  809. },
  810. "type": "object"
  811. }
  812. ]
  813. },
  814. "ruleSet-conditions": {
  815. "items": {
  816. "description": "A rule condition",
  817. "anyOf": [
  818. {
  819. "$ref": "#/definitions/ruleSet-condition"
  820. }
  821. ]
  822. },
  823. "type": "array"
  824. },
  825. "ruleSet-loader": {
  826. "minLength": 1,
  827. "type": "string"
  828. },
  829. "ruleSet-query": {
  830. "anyOf": [
  831. {
  832. "type": "object"
  833. },
  834. {
  835. "type": "string"
  836. }
  837. ]
  838. },
  839. "ruleSet-rule": {
  840. "additionalProperties": false,
  841. "properties": {
  842. "enforce": {
  843. "description": "Enforce this rule as pre or post step",
  844. "enum": [
  845. "pre",
  846. "post"
  847. ]
  848. },
  849. "exclude": {
  850. "description": "Shortcut for resource.exclude",
  851. "allOf": [
  852. {
  853. "$ref": "#/definitions/ruleSet-condition"
  854. },
  855. {
  856. "absolutePath": true
  857. }
  858. ]
  859. },
  860. "include": {
  861. "description": "Shortcut for resource.include",
  862. "allOf": [
  863. {
  864. "$ref": "#/definitions/ruleSet-condition"
  865. },
  866. {
  867. "absolutePath": true
  868. }
  869. ]
  870. },
  871. "issuer": {
  872. "description": "Match the issuer of the module (The module pointing to this module)",
  873. "allOf": [
  874. {
  875. "$ref": "#/definitions/ruleSet-condition"
  876. },
  877. {
  878. "absolutePath": true
  879. }
  880. ]
  881. },
  882. "loader": {
  883. "description": "Shortcut for use.loader",
  884. "anyOf": [
  885. {
  886. "$ref": "#/definitions/ruleSet-loader"
  887. },
  888. {
  889. "$ref": "#/definitions/ruleSet-use"
  890. }
  891. ]
  892. },
  893. "loaders": {
  894. "description": "Shortcut for use.loader",
  895. "anyOf": [
  896. {
  897. "$ref": "#/definitions/ruleSet-use"
  898. }
  899. ]
  900. },
  901. "oneOf": {
  902. "description": "Only execute the first matching rule in this array",
  903. "anyOf": [
  904. {
  905. "$ref": "#/definitions/ruleSet-rules"
  906. }
  907. ]
  908. },
  909. "options": {
  910. "description": "Shortcut for use.options",
  911. "anyOf": [
  912. {
  913. "$ref": "#/definitions/ruleSet-query"
  914. }
  915. ]
  916. },
  917. "parser": {
  918. "description": "Options for parsing",
  919. "additionalProperties": true,
  920. "type": "object"
  921. },
  922. "resolve": {
  923. "description": "Options for the resolver",
  924. "type": "object",
  925. "anyOf": [
  926. {
  927. "$ref": "#/definitions/resolve"
  928. }
  929. ]
  930. },
  931. "sideEffects": {
  932. "description": "Flags a module as with or without side effects",
  933. "type": "boolean"
  934. },
  935. "query": {
  936. "description": "Shortcut for use.query",
  937. "anyOf": [
  938. {
  939. "$ref": "#/definitions/ruleSet-query"
  940. }
  941. ]
  942. },
  943. "type": {
  944. "description": "Module type to use for the module",
  945. "enum": [
  946. "javascript/auto",
  947. "javascript/dynamic",
  948. "javascript/esm",
  949. "json",
  950. "webassembly/experimental"
  951. ]
  952. },
  953. "resource": {
  954. "description": "Match the resource path of the module",
  955. "allOf": [
  956. {
  957. "$ref": "#/definitions/ruleSet-condition"
  958. },
  959. {
  960. "absolutePath": true
  961. }
  962. ]
  963. },
  964. "resourceQuery": {
  965. "description": "Match the resource query of the module",
  966. "anyOf": [
  967. {
  968. "$ref": "#/definitions/ruleSet-condition"
  969. }
  970. ]
  971. },
  972. "compiler": {
  973. "description": "Match the child compiler name",
  974. "anyOf": [
  975. {
  976. "$ref": "#/definitions/ruleSet-condition"
  977. }
  978. ]
  979. },
  980. "rules": {
  981. "description": "Match and execute these rules when this rule is matched",
  982. "anyOf": [
  983. {
  984. "$ref": "#/definitions/ruleSet-rules"
  985. }
  986. ]
  987. },
  988. "test": {
  989. "description": "Shortcut for resource.test",
  990. "allOf": [
  991. {
  992. "$ref": "#/definitions/ruleSet-condition"
  993. },
  994. {
  995. "absolutePath": true
  996. }
  997. ]
  998. },
  999. "use": {
  1000. "description": "Modifiers applied to the module when rule is matched",
  1001. "anyOf": [
  1002. {
  1003. "$ref": "#/definitions/ruleSet-use"
  1004. }
  1005. ]
  1006. }
  1007. },
  1008. "type": "object"
  1009. },
  1010. "ruleSet-rules": {
  1011. "items": {
  1012. "description": "A rule",
  1013. "anyOf": [
  1014. {
  1015. "$ref": "#/definitions/ruleSet-rule"
  1016. }
  1017. ]
  1018. },
  1019. "type": "array"
  1020. },
  1021. "ruleSet-use": {
  1022. "anyOf": [
  1023. {
  1024. "$ref": "#/definitions/ruleSet-use-item"
  1025. },
  1026. {
  1027. "instanceof": "Function"
  1028. },
  1029. {
  1030. "items": {
  1031. "description": "An use item",
  1032. "anyOf": [
  1033. {
  1034. "$ref": "#/definitions/ruleSet-use-item"
  1035. }
  1036. ]
  1037. },
  1038. "type": "array"
  1039. }
  1040. ]
  1041. },
  1042. "ruleSet-use-item": {
  1043. "anyOf": [
  1044. {
  1045. "$ref": "#/definitions/ruleSet-loader"
  1046. },
  1047. {
  1048. "instanceof": "Function"
  1049. },
  1050. {
  1051. "additionalProperties": false,
  1052. "properties": {
  1053. "loader": {
  1054. "description": "Loader name",
  1055. "anyOf": [
  1056. {
  1057. "$ref": "#/definitions/ruleSet-loader"
  1058. }
  1059. ]
  1060. },
  1061. "options": {
  1062. "description": "Loader options",
  1063. "anyOf": [
  1064. {
  1065. "$ref": "#/definitions/ruleSet-query"
  1066. }
  1067. ]
  1068. },
  1069. "ident": {
  1070. "description": "Unique loader identifier",
  1071. "type": "string"
  1072. },
  1073. "query": {
  1074. "description": "Loader query",
  1075. "anyOf": [
  1076. {
  1077. "$ref": "#/definitions/ruleSet-query"
  1078. }
  1079. ]
  1080. }
  1081. },
  1082. "type": "object"
  1083. }
  1084. ]
  1085. },
  1086. "filter-item-types": {
  1087. "anyOf": [
  1088. {
  1089. "instanceof": "RegExp"
  1090. },
  1091. {
  1092. "type": "string"
  1093. },
  1094. {
  1095. "instanceof": "Function"
  1096. }
  1097. ]
  1098. },
  1099. "filter-types": {
  1100. "anyOf": [
  1101. {
  1102. "$ref": "#/definitions/filter-item-types"
  1103. },
  1104. {
  1105. "type": "array",
  1106. "items": {
  1107. "description": "Rule to filter",
  1108. "anyOf": [
  1109. {
  1110. "$ref": "#/definitions/filter-item-types"
  1111. }
  1112. ]
  1113. }
  1114. }
  1115. ]
  1116. }
  1117. },
  1118. "properties": {
  1119. "mode": {
  1120. "description": "Enable production optimizations or development hints.",
  1121. "enum": [
  1122. "development",
  1123. "production",
  1124. "none"
  1125. ]
  1126. },
  1127. "amd": {
  1128. "description": "Set the value of `require.amd` and `define.amd`."
  1129. },
  1130. "bail": {
  1131. "description": "Report the first error as a hard error instead of tolerating it.",
  1132. "type": "boolean"
  1133. },
  1134. "cache": {
  1135. "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
  1136. "anyOf": [
  1137. {
  1138. "description": "You can pass `false` to disable it.",
  1139. "type": "boolean"
  1140. },
  1141. {
  1142. "description": "You can pass an object to enable it and let webpack use the passed object as cache. This way you can share the cache object between multiple compiler calls.",
  1143. "type": "object"
  1144. }
  1145. ]
  1146. },
  1147. "context": {
  1148. "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
  1149. "type": "string",
  1150. "absolutePath": true
  1151. },
  1152. "dependencies": {
  1153. "description": "References to other configurations to depend on.",
  1154. "items": {
  1155. "description": "References to another configuration to depend on.",
  1156. "type": "string"
  1157. },
  1158. "type": "array"
  1159. },
  1160. "devServer": {
  1161. "description": "Options for the webpack-dev-server",
  1162. "type": "object"
  1163. },
  1164. "devtool": {
  1165. "description": "A developer tool to enhance debugging.",
  1166. "anyOf": [
  1167. {
  1168. "type": "string"
  1169. },
  1170. {
  1171. "enum": [
  1172. false
  1173. ]
  1174. }
  1175. ]
  1176. },
  1177. "entry": {
  1178. "description": "The entry point(s) of the compilation.",
  1179. "anyOf": [
  1180. {
  1181. "$ref": "#/definitions/entry"
  1182. }
  1183. ]
  1184. },
  1185. "externals": {
  1186. "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`.",
  1187. "anyOf": [
  1188. {
  1189. "$ref": "#/definitions/externals"
  1190. }
  1191. ]
  1192. },
  1193. "loader": {
  1194. "description": "Custom values available in the loader context.",
  1195. "type": "object"
  1196. },
  1197. "module": {
  1198. "description": "Options affecting the normal modules (`NormalModuleFactory`).",
  1199. "anyOf": [
  1200. {
  1201. "$ref": "#/definitions/module"
  1202. }
  1203. ]
  1204. },
  1205. "name": {
  1206. "description": "Name of the configuration. Used when loading multiple configurations.",
  1207. "type": "string"
  1208. },
  1209. "node": {
  1210. "description": "Include polyfills or mocks for various node stuff.",
  1211. "anyOf": [
  1212. {
  1213. "enum": [
  1214. false
  1215. ]
  1216. },
  1217. {
  1218. "additionalProperties": {
  1219. "description": "Include a polyfill for the node.js module",
  1220. "enum": [
  1221. false,
  1222. true,
  1223. "mock",
  1224. "empty"
  1225. ]
  1226. },
  1227. "properties": {
  1228. "Buffer": {
  1229. "description": "Include a polyfill for the 'Buffer' variable",
  1230. "enum": [
  1231. false,
  1232. true,
  1233. "mock"
  1234. ]
  1235. },
  1236. "__dirname": {
  1237. "description": "Include a polyfill for the '__dirname' variable",
  1238. "enum": [
  1239. false,
  1240. true,
  1241. "mock"
  1242. ]
  1243. },
  1244. "__filename": {
  1245. "description": "Include a polyfill for the '__filename' variable",
  1246. "enum": [
  1247. false,
  1248. true,
  1249. "mock"
  1250. ]
  1251. },
  1252. "console": {
  1253. "description": "Include a polyfill for the 'console' variable",
  1254. "enum": [
  1255. false,
  1256. true,
  1257. "mock"
  1258. ]
  1259. },
  1260. "global": {
  1261. "description": "Include a polyfill for the 'global' variable",
  1262. "type": "boolean"
  1263. },
  1264. "process": {
  1265. "description": "Include a polyfill for the 'process' variable",
  1266. "enum": [
  1267. false,
  1268. true,
  1269. "mock"
  1270. ]
  1271. }
  1272. },
  1273. "type": "object"
  1274. }
  1275. ]
  1276. },
  1277. "output": {
  1278. "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
  1279. "anyOf": [
  1280. {
  1281. "$ref": "#/definitions/output"
  1282. }
  1283. ]
  1284. },
  1285. "optimization": {
  1286. "description": "Enables/Disables integrated optimizations",
  1287. "type": "object",
  1288. "additionalProperties": false,
  1289. "properties": {
  1290. "removeAvailableModules": {
  1291. "description": "Removes modules from chunks when these modules are already included in all parents",
  1292. "type": "boolean"
  1293. },
  1294. "removeEmptyChunks": {
  1295. "description": "Remove chunks which are empty",
  1296. "type": "boolean"
  1297. },
  1298. "mergeDuplicateChunks": {
  1299. "description": "Merge chunks which contain the same modules",
  1300. "type": "boolean"
  1301. },
  1302. "flagIncludedChunks": {
  1303. "description": "Also flag chunks as loaded which contain a subset of the modules",
  1304. "type": "boolean"
  1305. },
  1306. "occurrenceOrder": {
  1307. "description": "Figure out a order of modules which results in the smallest initial bundle",
  1308. "type": "boolean"
  1309. },
  1310. "sideEffects": {
  1311. "description": "Skip over modules which are flagged to contain no side effects when exports are not used",
  1312. "type": "boolean"
  1313. },
  1314. "providedExports": {
  1315. "description": "Figure out which exports are provided by modules to generate more efficient code",
  1316. "type": "boolean"
  1317. },
  1318. "usedExports": {
  1319. "description": "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code",
  1320. "type": "boolean"
  1321. },
  1322. "concatenateModules": {
  1323. "description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer",
  1324. "type": "boolean"
  1325. },
  1326. "splitChunks": {
  1327. "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group",
  1328. "oneOf": [
  1329. {
  1330. "enum": [
  1331. false
  1332. ]
  1333. },
  1334. {
  1335. "type": "object",
  1336. "additionalProperties": false,
  1337. "properties": {
  1338. "chunks": {
  1339. "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
  1340. "oneOf": [
  1341. {
  1342. "enum": [
  1343. "initial",
  1344. "async",
  1345. "all"
  1346. ]
  1347. },
  1348. {
  1349. "instanceof": "Function"
  1350. }
  1351. ]
  1352. },
  1353. "minSize": {
  1354. "description": "Minimal size for the created chunk",
  1355. "type": "number",
  1356. "minimum": 0
  1357. },
  1358. "minChunks": {
  1359. "description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
  1360. "type": "number",
  1361. "minimum": 1
  1362. },
  1363. "maxAsyncRequests": {
  1364. "description": "Maximum number of requests which are accepted for on-demand loading",
  1365. "type": "number",
  1366. "minimum": 1
  1367. },
  1368. "maxInitialRequests": {
  1369. "description": "Maximum number of initial chunks which are accepted for an entry point",
  1370. "type": "number",
  1371. "minimum": 1
  1372. },
  1373. "name": {
  1374. "description": "Give chunks created a name (chunks with equal name are merged)",
  1375. "oneOf": [
  1376. {
  1377. "type": "boolean"
  1378. },
  1379. {
  1380. "instanceof": "Function"
  1381. },
  1382. {
  1383. "type": "string"
  1384. }
  1385. ]
  1386. },
  1387. "filename": {
  1388. "description": "Sets the template for the filename for created chunks (Only works for initial chunks)",
  1389. "type": "string",
  1390. "minLength": 1
  1391. },
  1392. "automaticNameDelimiter": {
  1393. "description": "Sets the name delimiter for created chunks",
  1394. "type": "string",
  1395. "minLength": 1
  1396. },
  1397. "cacheGroups": {
  1398. "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)",
  1399. "type": "object",
  1400. "additionalProperties": {
  1401. "description": "Configuration for a cache group",
  1402. "anyOf": [
  1403. {
  1404. "enum": [
  1405. false
  1406. ]
  1407. },
  1408. {
  1409. "instanceof": "Function"
  1410. },
  1411. {
  1412. "type": "string"
  1413. },
  1414. {
  1415. "instanceof": "RegExp"
  1416. },
  1417. {
  1418. "type": "object",
  1419. "additionalProperties": false,
  1420. "properties": {
  1421. "test": {
  1422. "description": "Assign modules to a cache group",
  1423. "oneOf": [
  1424. {
  1425. "instanceof": "Function"
  1426. },
  1427. {
  1428. "type": "string"
  1429. },
  1430. {
  1431. "instanceof": "RegExp"
  1432. }
  1433. ]
  1434. },
  1435. "chunks": {
  1436. "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML)",
  1437. "oneOf": [
  1438. {
  1439. "enum": [
  1440. "initial",
  1441. "async",
  1442. "all"
  1443. ]
  1444. },
  1445. {
  1446. "instanceof": "Function"
  1447. }
  1448. ]
  1449. },
  1450. "enforce": {
  1451. "description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group",
  1452. "type": "boolean"
  1453. },
  1454. "priority": {
  1455. "description": "Priority of this cache group",
  1456. "type": "number"
  1457. },
  1458. "minSize": {
  1459. "description": "Minimal size for the created chunk",
  1460. "type": "number",
  1461. "minimum": 0
  1462. },
  1463. "minChunks": {
  1464. "description": "Minimum number of times a module has to be duplicated until it's considered for splitting",
  1465. "type": "number",
  1466. "minimum": 1
  1467. },
  1468. "maxAsyncRequests": {
  1469. "description": "Maximum number of requests which are accepted for on-demand loading",
  1470. "type": "number",
  1471. "minimum": 1
  1472. },
  1473. "maxInitialRequests": {
  1474. "description": "Maximum number of initial chunks which are accepted for an entry point",
  1475. "type": "number",
  1476. "minimum": 1
  1477. },
  1478. "reuseExistingChunk": {
  1479. "description": "Try to reuse existing chunk (with name) when it has matching modules",
  1480. "type": "boolean"
  1481. },
  1482. "name": {
  1483. "description": "Give chunks for this cache group a name (chunks with equal name are merged)",
  1484. "oneOf": [
  1485. {
  1486. "type": "boolean"
  1487. },
  1488. {
  1489. "instanceof": "Function"
  1490. },
  1491. {
  1492. "type": "string"
  1493. }
  1494. ]
  1495. },
  1496. "filename": {
  1497. "description": "Sets the template for the filename for created chunks (Only works for initial chunks)",
  1498. "type": "string",
  1499. "minLength": 1
  1500. }
  1501. }
  1502. }
  1503. ]
  1504. }
  1505. }
  1506. }
  1507. }
  1508. ]
  1509. },
  1510. "runtimeChunk": {
  1511. "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps",
  1512. "oneOf": [
  1513. {
  1514. "type": "boolean"
  1515. },
  1516. {
  1517. "enum": [
  1518. "single",
  1519. "multiple"
  1520. ]
  1521. },
  1522. {
  1523. "type": "object",
  1524. "additionalProperties": false,
  1525. "properties": {
  1526. "name": {
  1527. "description": "The name or name factory for the runtime chunks",
  1528. "oneOf": [
  1529. {
  1530. "type": "string"
  1531. },
  1532. {
  1533. "instanceof": "Function"
  1534. }
  1535. ]
  1536. }
  1537. }
  1538. }
  1539. ]
  1540. },
  1541. "noEmitOnErrors": {
  1542. "description": "Avoid emitting assets when errors occur",
  1543. "type": "boolean"
  1544. },
  1545. "namedModules": {
  1546. "description": "Use readable module identifiers for better debugging",
  1547. "type": "boolean"
  1548. },
  1549. "namedChunks": {
  1550. "description": "Use readable chunk identifiers for better debugging",
  1551. "type": "boolean"
  1552. },
  1553. "portableRecords": {
  1554. "description": "Generate records with relative paths to be able to move the context folder",
  1555. "type": "boolean"
  1556. },
  1557. "minimize": {
  1558. "description": "Enable minimizing the output. Uses optimization.minimizer.",
  1559. "type": "boolean"
  1560. },
  1561. "minimizer": {
  1562. "description": "Minimizer(s) to use for minimizing the output",
  1563. "type": "array",
  1564. "items": {
  1565. "description": "Plugin of type object or instanceof Function",
  1566. "anyOf": [
  1567. {
  1568. "$ref": "#/definitions/common.pluginObject"
  1569. },
  1570. {
  1571. "$ref": "#/definitions/common.pluginFunction"
  1572. }
  1573. ]
  1574. }
  1575. },
  1576. "nodeEnv": {
  1577. "description": "Set process.env.NODE_ENV to a specific value",
  1578. "anyOf": [
  1579. {
  1580. "enum": [
  1581. false
  1582. ]
  1583. },
  1584. {
  1585. "type": "string"
  1586. }
  1587. ]
  1588. }
  1589. }
  1590. },
  1591. "parallelism": {
  1592. "description": "The number of parallel processed modules in the compilation.",
  1593. "minimum": 1,
  1594. "type": "number"
  1595. },
  1596. "performance": {
  1597. "description": "Configuration for web performance recommendations.",
  1598. "anyOf": [
  1599. {
  1600. "enum": [
  1601. false
  1602. ]
  1603. },
  1604. {
  1605. "additionalProperties": false,
  1606. "properties": {
  1607. "assetFilter": {
  1608. "description": "Filter function to select assets that are checked",
  1609. "instanceof": "Function"
  1610. },
  1611. "hints": {
  1612. "description": "Sets the format of the hints: warnings, errors or nothing at all",
  1613. "enum": [
  1614. false,
  1615. "warning",
  1616. "error"
  1617. ]
  1618. },
  1619. "maxEntrypointSize": {
  1620. "description": "Total size of an entry point (in bytes)",
  1621. "type": "number"
  1622. },
  1623. "maxAssetSize": {
  1624. "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints",
  1625. "type": "number"
  1626. }
  1627. },
  1628. "type": "object"
  1629. }
  1630. ]
  1631. },
  1632. "plugins": {
  1633. "description": "Add additional plugins to the compiler.",
  1634. "type": "array",
  1635. "items": {
  1636. "description": "Plugin of type object or instanceof Function",
  1637. "anyOf": [
  1638. {
  1639. "$ref": "#/definitions/common.pluginObject"
  1640. },
  1641. {
  1642. "$ref": "#/definitions/common.pluginFunction"
  1643. }
  1644. ]
  1645. }
  1646. },
  1647. "profile": {
  1648. "description": "Capture timing information for each module.",
  1649. "type": "boolean"
  1650. },
  1651. "recordsInputPath": {
  1652. "description": "Store compiler state to a json file.",
  1653. "type": "string",
  1654. "absolutePath": true
  1655. },
  1656. "recordsOutputPath": {
  1657. "description": "Load compiler state from a json file.",
  1658. "type": "string",
  1659. "absolutePath": true
  1660. },
  1661. "recordsPath": {
  1662. "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.",
  1663. "type": "string",
  1664. "absolutePath": true
  1665. },
  1666. "resolve": {
  1667. "description": "Options for the resolver",
  1668. "anyOf": [
  1669. {
  1670. "$ref": "#/definitions/resolve"
  1671. }
  1672. ]
  1673. },
  1674. "resolveLoader": {
  1675. "description": "Options for the resolver when resolving loaders",
  1676. "anyOf": [
  1677. {
  1678. "$ref": "#/definitions/resolve"
  1679. }
  1680. ]
  1681. },
  1682. "serve": {
  1683. "description": "Options for webpack-dev-server",
  1684. "type": "object"
  1685. },
  1686. "stats": {
  1687. "description": "Used by the webpack CLI program to pass stats options.",
  1688. "anyOf": [
  1689. {
  1690. "type": "object",
  1691. "additionalProperties": false,
  1692. "properties": {
  1693. "all": {
  1694. "type": "boolean",
  1695. "description": "fallback value for stats options when an option is not defined (has precedence over local webpack defaults)"
  1696. },
  1697. "context": {
  1698. "type": "string",
  1699. "description": "context directory for request shortening",
  1700. "absolutePath": true
  1701. },
  1702. "hash": {
  1703. "type": "boolean",
  1704. "description": "add the hash of the compilation"
  1705. },
  1706. "version": {
  1707. "type": "boolean",
  1708. "description": "add webpack version information"
  1709. },
  1710. "timings": {
  1711. "type": "boolean",
  1712. "description": "add timing information"
  1713. },
  1714. "builtAt": {
  1715. "type": "boolean",
  1716. "description": "add built at time information"
  1717. },
  1718. "performance": {
  1719. "type": "boolean",
  1720. "description": "add performance hint flags"
  1721. },
  1722. "depth": {
  1723. "type": "boolean",
  1724. "description": "add module depth in module graph"
  1725. },
  1726. "assets": {
  1727. "type": "boolean",
  1728. "description": "add assets information"
  1729. },
  1730. "env": {
  1731. "type": "boolean",
  1732. "description": "add --env information"
  1733. },
  1734. "colors": {
  1735. "description": "Enables/Disables colorful output",
  1736. "oneOf": [
  1737. {
  1738. "type": "boolean",
  1739. "description": "`webpack --colors` equivalent"
  1740. },
  1741. {
  1742. "type": "object",
  1743. "additionalProperties": false,
  1744. "properties": {
  1745. "bold": {
  1746. "description": "Custom color for bold text",
  1747. "type": "string"
  1748. },
  1749. "red": {
  1750. "description": "Custom color for red text",
  1751. "type": "string"
  1752. },
  1753. "green": {
  1754. "description": "Custom color for green text",
  1755. "type": "string"
  1756. },
  1757. "cyan": {
  1758. "description": "Custom color for cyan text",
  1759. "type": "string"
  1760. },
  1761. "magenta": {
  1762. "description": "Custom color for magenta text",
  1763. "type": "string"
  1764. },
  1765. "yellow": {
  1766. "description": "Custom color for yellow text",
  1767. "type": "string"
  1768. }
  1769. }
  1770. }
  1771. ]
  1772. },
  1773. "maxModules": {
  1774. "type": "number",
  1775. "description": "Set the maximum number of modules to be shown"
  1776. },
  1777. "chunks": {
  1778. "type": "boolean",
  1779. "description": "add chunk information"
  1780. },
  1781. "chunkModules": {
  1782. "type": "boolean",
  1783. "description": "add built modules information to chunk information"
  1784. },
  1785. "modules": {
  1786. "type": "boolean",
  1787. "description": "add built modules information"
  1788. },
  1789. "nestedModules": {
  1790. "type": "boolean",
  1791. "description": "add information about modules nested in other modules (like with module concatenation)"
  1792. },
  1793. "moduleAssets": {
  1794. "type": "boolean",
  1795. "description": "add information about assets inside modules"
  1796. },
  1797. "children": {
  1798. "type": "boolean",
  1799. "description": "add children information"
  1800. },
  1801. "cached": {
  1802. "type": "boolean",
  1803. "description": "add also information about cached (not built) modules"
  1804. },
  1805. "cachedAssets": {
  1806. "type": "boolean",
  1807. "description": "Show cached assets (setting this to `false` only shows emitted files)"
  1808. },
  1809. "reasons": {
  1810. "type": "boolean",
  1811. "description": "add information about the reasons why modules are included"
  1812. },
  1813. "source": {
  1814. "type": "boolean",
  1815. "description": "add the source code of modules"
  1816. },
  1817. "warnings": {
  1818. "type": "boolean",
  1819. "description": "add warnings"
  1820. },
  1821. "errors": {
  1822. "type": "boolean",
  1823. "description": "add errors"
  1824. },
  1825. "warningsFilter": {
  1826. "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
  1827. "anyOf": [
  1828. {
  1829. "$ref": "#/definitions/filter-types"
  1830. }
  1831. ]
  1832. },
  1833. "excludeAssets": {
  1834. "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
  1835. "anyOf": [
  1836. {
  1837. "$ref": "#/definitions/filter-types"
  1838. }
  1839. ]
  1840. },
  1841. "excludeModules": {
  1842. "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions",
  1843. "anyOf": [
  1844. {
  1845. "$ref": "#/definitions/filter-types"
  1846. },
  1847. {
  1848. "type": "boolean"
  1849. }
  1850. ]
  1851. },
  1852. "exclude": {
  1853. "description": "Please use excludeModules instead.",
  1854. "anyOf": [
  1855. {
  1856. "$ref": "#/definitions/filter-types"
  1857. },
  1858. {
  1859. "type": "boolean"
  1860. }
  1861. ]
  1862. },
  1863. "entrypoints": {
  1864. "type": "boolean",
  1865. "description": "Display the entry points with the corresponding bundles"
  1866. },
  1867. "chunkGroups": {
  1868. "type": "boolean",
  1869. "description": "Display all chunk groups with the corresponding bundles"
  1870. },
  1871. "errorDetails": {
  1872. "type": "boolean",
  1873. "description": "add details to errors (like resolving log)"
  1874. },
  1875. "chunkOrigins": {
  1876. "type": "boolean",
  1877. "description": "add the origins of chunks and chunk merging info"
  1878. },
  1879. "modulesSort": {
  1880. "type": "string",
  1881. "description": "sort the modules by that field"
  1882. },
  1883. "moduleTrace": {
  1884. "type": "boolean",
  1885. "description": "add dependencies and origin of warnings/errors"
  1886. },
  1887. "chunksSort": {
  1888. "type": "string",
  1889. "description": "sort the chunks by that field"
  1890. },
  1891. "assetsSort": {
  1892. "type": "string",
  1893. "description": "sort the assets by that field"
  1894. },
  1895. "publicPath": {
  1896. "type": "boolean",
  1897. "description": "Add public path information"
  1898. },
  1899. "outputPath": {
  1900. "type": "boolean",
  1901. "description": "Add output path information"
  1902. },
  1903. "providedExports": {
  1904. "type": "boolean",
  1905. "description": "show exports provided by modules"
  1906. },
  1907. "usedExports": {
  1908. "type": "boolean",
  1909. "description": "show exports used by modules"
  1910. },
  1911. "optimizationBailout": {
  1912. "type": "boolean",
  1913. "description": "show reasons why optimization bailed out for modules"
  1914. }
  1915. }
  1916. },
  1917. {
  1918. "type": "boolean"
  1919. },
  1920. {
  1921. "enum": [
  1922. "none",
  1923. "errors-only",
  1924. "minimal",
  1925. "normal",
  1926. "detailed",
  1927. "verbose"
  1928. ]
  1929. }
  1930. ]
  1931. },
  1932. "target": {
  1933. "description": "Environment to build for",
  1934. "anyOf": [
  1935. {
  1936. "enum": [
  1937. "web",
  1938. "webworker",
  1939. "node",
  1940. "async-node",
  1941. "node-webkit",
  1942. "electron-main",
  1943. "electron-renderer"
  1944. ]
  1945. },
  1946. {
  1947. "instanceof": "Function"
  1948. }
  1949. ]
  1950. },
  1951. "watch": {
  1952. "description": "Enter watch mode, which rebuilds on file change.",
  1953. "type": "boolean"
  1954. },
  1955. "watchOptions": {
  1956. "description": "Options for the watcher",
  1957. "additionalProperties": false,
  1958. "properties": {
  1959. "aggregateTimeout": {
  1960. "description": "Delay the rebuilt after the first change. Value is a time in ms.",
  1961. "type": "number"
  1962. },
  1963. "ignored": {
  1964. "description": "Ignore some files from watching"
  1965. },
  1966. "stdin": {
  1967. "description": "Stop watching when stdin stream has ended",
  1968. "type": "boolean"
  1969. },
  1970. "poll": {
  1971. "description": "Enable polling mode for watching",
  1972. "anyOf": [
  1973. {
  1974. "description": "`true`: use polling.",
  1975. "type": "boolean"
  1976. },
  1977. {
  1978. "description": "`number`: use polling with specified interval.",
  1979. "type": "number"
  1980. }
  1981. ]
  1982. }
  1983. },
  1984. "type": "object"
  1985. }
  1986. },
  1987. "type": "object"
  1988. }