UI for Zipcoin Blue

webpackOptionsSchema.json 35KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217
  1. {
  2. "additionalProperties": false,
  3. "definitions": {
  4. "common.arrayOfStringOrStringArrayValues": {
  5. "items": {
  6. "anyOf": [
  7. {
  8. "minLength": 1,
  9. "type": "string"
  10. },
  11. {
  12. "items": {
  13. "minLength": 1,
  14. "type": "string"
  15. },
  16. "type": "array"
  17. }
  18. ]
  19. },
  20. "type": "array"
  21. },
  22. "common.arrayOfStringValues": {
  23. "items": {
  24. "minLength": 1,
  25. "type": "string"
  26. },
  27. "type": "array"
  28. },
  29. "common.nonEmptyArrayOfUniqueStringValues": {
  30. "items": {
  31. "minLength": 1,
  32. "type": "string"
  33. },
  34. "minItems": 1,
  35. "type": "array",
  36. "uniqueItems": true
  37. },
  38. "entry": {
  39. "description": "The entry point(s) of the compilation.",
  40. "oneOf": [
  41. {
  42. "minProperties": 1,
  43. "additionalProperties": {
  44. "oneOf": [
  45. {
  46. "description": "The string is resolved to a module which is loaded upon startup.",
  47. "minLength": 1,
  48. "type": "string"
  49. },
  50. {
  51. "description": "All modules are loaded upon startup. The last one is exported.",
  52. "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
  53. }
  54. ]
  55. },
  56. "description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
  57. "type": "object"
  58. },
  59. {
  60. "description": "The string is resolved to a module which is loaded upon startup.",
  61. "minLength": 1,
  62. "type": "string"
  63. },
  64. {
  65. "allOf": [
  66. {
  67. "$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
  68. }
  69. ],
  70. "description": "All modules are loaded upon startup. The last one is exported."
  71. },
  72. {
  73. "description": "function returning an entry object or a promise.",
  74. "instanceof": "Function"
  75. }
  76. ]
  77. },
  78. "externals": {
  79. "anyOf": [
  80. {
  81. "description": "An exact matched dependency becomes external. The same string is used as external dependency.",
  82. "type": "string"
  83. },
  84. {
  85. "additionalProperties": {
  86. "anyOf": [
  87. {
  88. "type": "string"
  89. },
  90. {
  91. "type": "object"
  92. },
  93. {
  94. "type": "boolean"
  95. }
  96. ]
  97. },
  98. "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.",
  99. "type": "object"
  100. },
  101. {
  102. "description": "`function(context, request, callback(err, result))` The function is called on each dependency.",
  103. "instanceof": "Function"
  104. },
  105. {
  106. "description": "Every matched dependency becomes external.",
  107. "instanceof": "RegExp"
  108. },
  109. {
  110. "items": {
  111. "$ref": "#/definitions/externals"
  112. },
  113. "type": "array"
  114. }
  115. ],
  116. "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`."
  117. },
  118. "module": {
  119. "additionalProperties": false,
  120. "description": "Options affecting the normal modules (`NormalModuleFactory`).",
  121. "properties": {
  122. "exprContextCritical": {
  123. "type": "boolean"
  124. },
  125. "exprContextRecursive": {
  126. "type": "boolean"
  127. },
  128. "exprContextRegExp": {
  129. "anyOf": [
  130. {
  131. "type": "boolean"
  132. },
  133. {
  134. "instanceof": "RegExp"
  135. }
  136. ]
  137. },
  138. "exprContextRequest": {
  139. "type": "string"
  140. },
  141. "loaders": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/ruleSet-rules"
  145. }
  146. ],
  147. "description": "An array of automatically applied loaders."
  148. },
  149. "noParse": {
  150. "description": "Don't parse files matching. It's matched against the full resolved request.",
  151. "anyOf": [
  152. {
  153. "items": {
  154. "instanceof": "RegExp"
  155. },
  156. "minItems": 1,
  157. "type": "array"
  158. },
  159. {
  160. "instanceof": "RegExp"
  161. },
  162. {
  163. "instanceof": "Function"
  164. },
  165. {
  166. "items": {
  167. "type": "string",
  168. "absolutePath": true
  169. },
  170. "minItems": 1,
  171. "type": "array"
  172. },
  173. {
  174. "type": "string",
  175. "absolutePath": true
  176. }
  177. ]
  178. },
  179. "rules": {
  180. "allOf": [
  181. {
  182. "$ref": "#/definitions/ruleSet-rules"
  183. }
  184. ],
  185. "description": "An array of rules applied for modules."
  186. },
  187. "unknownContextCritical": {
  188. "type": "boolean"
  189. },
  190. "unknownContextRecursive": {
  191. "type": "boolean"
  192. },
  193. "unknownContextRegExp": {
  194. "anyOf": [
  195. {
  196. "type": "boolean"
  197. },
  198. {
  199. "instanceof": "RegExp"
  200. }
  201. ]
  202. },
  203. "unknownContextRequest": {
  204. "type": "string"
  205. },
  206. "unsafeCache": {
  207. "anyOf": [
  208. {
  209. "type": "boolean"
  210. },
  211. {
  212. "instanceof": "Function"
  213. }
  214. ]
  215. },
  216. "wrappedContextCritical": {
  217. "type": "boolean"
  218. },
  219. "wrappedContextRecursive": {
  220. "type": "boolean"
  221. },
  222. "wrappedContextRegExp": {
  223. "instanceof": "RegExp"
  224. },
  225. "strictExportPresence": {
  226. "type": "boolean"
  227. },
  228. "strictThisContextOnImports": {
  229. "type": "boolean"
  230. }
  231. },
  232. "type": "object"
  233. },
  234. "output": {
  235. "additionalProperties": false,
  236. "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
  237. "properties": {
  238. "auxiliaryComment": {
  239. "description": "Add a comment in the UMD wrapper.",
  240. "anyOf": [
  241. {
  242. "description": "Append the same comment above each import style.",
  243. "type": "string"
  244. },
  245. {
  246. "additionalProperties": false,
  247. "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
  248. "properties": {
  249. "amd": {
  250. "type": "string"
  251. },
  252. "commonjs": {
  253. "type": "string"
  254. },
  255. "commonjs2": {
  256. "type": "string"
  257. },
  258. "root": {
  259. "type": "string"
  260. }
  261. },
  262. "type": "object"
  263. }
  264. ]
  265. },
  266. "chunkFilename": {
  267. "description": "The filename of non-entry chunks as relative path inside the `output.path` directory.",
  268. "type": "string",
  269. "absolutePath": false
  270. },
  271. "crossOriginLoading": {
  272. "description": "This option enables cross-origin loading of chunks.",
  273. "enum": [
  274. false,
  275. "anonymous",
  276. "use-credentials"
  277. ]
  278. },
  279. "chunkLoadTimeout": {
  280. "description": "Number of milliseconds before chunk request expires",
  281. "type": "number"
  282. },
  283. "devtoolFallbackModuleFilenameTemplate": {
  284. "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.",
  285. "anyOf": [
  286. {
  287. "type": "string"
  288. },
  289. {
  290. "instanceof": "Function"
  291. }
  292. ]
  293. },
  294. "devtoolLineToLine": {
  295. "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.",
  296. "anyOf": [
  297. {
  298. "description": "`true` enables it for all modules (not recommended)",
  299. "type": "boolean"
  300. },
  301. {
  302. "description": "An object similar to `module.loaders` enables it for specific files.",
  303. "properties": {
  304. "exclude": {
  305. "type": "string"
  306. },
  307. "include": {
  308. "type": "string"
  309. },
  310. "test": {
  311. "type": "string"
  312. }
  313. },
  314. "type": "object"
  315. }
  316. ]
  317. },
  318. "devtoolModuleFilenameTemplate": {
  319. "description": "Filename template string of function for the sources array in a generated SourceMap.",
  320. "anyOf": [
  321. {
  322. "type": "string"
  323. },
  324. {
  325. "instanceof": "Function"
  326. }
  327. ]
  328. },
  329. "filename": {
  330. "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.",
  331. "type": "string",
  332. "absolutePath": false
  333. },
  334. "hashDigest": {
  335. "minLength": 1,
  336. "type": "string"
  337. },
  338. "hashDigestLength": {
  339. "minimum": 1,
  340. "type": "number"
  341. },
  342. "hashFunction": {
  343. "minLength": 1,
  344. "type": "string"
  345. },
  346. "hashSalt": {
  347. "minLength": 1,
  348. "type": "string"
  349. },
  350. "hotUpdateChunkFilename": {
  351. "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
  352. "type": "string",
  353. "absolutePath": false
  354. },
  355. "hotUpdateFunction": {
  356. "description": "The JSONP function used by webpack for async loading of hot update chunks.",
  357. "type": "string"
  358. },
  359. "hotUpdateMainFilename": {
  360. "description": "The filename of the Hot Update Main File. It is inside the `output.path` directory.",
  361. "type": "string",
  362. "absolutePath": false
  363. },
  364. "jsonpFunction": {
  365. "description": "The JSONP function used by webpack for async loading of chunks.",
  366. "type": "string"
  367. },
  368. "library": {
  369. "anyOf": [
  370. {
  371. "type": "string"
  372. },
  373. {
  374. "items": {
  375. "type": "string"
  376. },
  377. "type": "array"
  378. },
  379. {
  380. "type": "object",
  381. "properties": {
  382. "root": { "type": "string" },
  383. "amd": { "type": "string" },
  384. "commonjs": { "type": "string" }
  385. }
  386. }
  387. ],
  388. "description": "If set, export the bundle as library. `output.library` is the name."
  389. },
  390. "libraryTarget": {
  391. "enum": [
  392. "var",
  393. "assign",
  394. "this",
  395. "window",
  396. "global",
  397. "commonjs",
  398. "commonjs2",
  399. "commonjs-module",
  400. "amd",
  401. "umd",
  402. "umd2",
  403. "jsonp"
  404. ]
  405. },
  406. "libraryExport": {
  407. "anyOf": [
  408. {
  409. "type": "string"
  410. },
  411. {
  412. "$ref": "#/definitions/common.arrayOfStringValues"
  413. }
  414. ]
  415. },
  416. "path": {
  417. "description": "The output directory as **absolute path** (required).",
  418. "type": "string",
  419. "absolutePath": true
  420. },
  421. "pathinfo": {
  422. "description": "Include comments with information about the modules.",
  423. "type": "boolean"
  424. },
  425. "publicPath": {
  426. "description": "The `publicPath` specifies the public URL address of the output files when referenced in a browser.",
  427. "type": "string"
  428. },
  429. "sourceMapFilename": {
  430. "description": "The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.",
  431. "type": "string",
  432. "absolutePath": false
  433. },
  434. "sourcePrefix": {
  435. "description": "Prefixes every line of the source in the bundle with this string.",
  436. "type": "string"
  437. },
  438. "strictModuleExceptionHandling": {
  439. "description": "Handles exceptions in module loading correctly at a performance cost.",
  440. "type": "boolean"
  441. },
  442. "umdNamedDefine": {
  443. "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
  444. "type": "boolean"
  445. }
  446. },
  447. "type": "object"
  448. },
  449. "resolve": {
  450. "additionalProperties": false,
  451. "properties": {
  452. "alias": {
  453. "anyOf": [
  454. {
  455. "additionalProperties": {
  456. "type": "string"
  457. },
  458. "type": "object"
  459. },
  460. {
  461. "items": {
  462. "additionalProperties": false,
  463. "properties": {
  464. "alias": {
  465. "type": "string"
  466. },
  467. "name": {
  468. "type": "string"
  469. },
  470. "onlyModule": {
  471. "type": "boolean"
  472. }
  473. },
  474. "type": "object"
  475. },
  476. "type": "array"
  477. }
  478. ]
  479. },
  480. "aliasFields": {
  481. "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
  482. },
  483. "cachePredicate": {
  484. "instanceof": "Function"
  485. },
  486. "cacheWithContext": {
  487. "type": "boolean"
  488. },
  489. "descriptionFiles": {
  490. "$ref": "#/definitions/common.arrayOfStringValues"
  491. },
  492. "enforceExtension": {
  493. "type": "boolean"
  494. },
  495. "enforceModuleExtension": {
  496. "type": "boolean"
  497. },
  498. "extensions": {
  499. "$ref": "#/definitions/common.arrayOfStringValues"
  500. },
  501. "fileSystem": {},
  502. "mainFields": {
  503. "$ref": "#/definitions/common.arrayOfStringOrStringArrayValues"
  504. },
  505. "mainFiles": {
  506. "$ref": "#/definitions/common.arrayOfStringValues"
  507. },
  508. "moduleExtensions": {
  509. "$ref": "#/definitions/common.arrayOfStringValues"
  510. },
  511. "modules": {
  512. "$ref": "#/definitions/common.arrayOfStringValues"
  513. },
  514. "plugins": {
  515. "type": "array"
  516. },
  517. "resolver": {},
  518. "symlinks": {
  519. "type": "boolean"
  520. },
  521. "unsafeCache": {
  522. "anyOf": [
  523. {
  524. "type": "boolean"
  525. },
  526. {
  527. "additionalProperties": true,
  528. "type": "object"
  529. }
  530. ]
  531. },
  532. "useSyncFileSystemCalls": {
  533. "type": "boolean"
  534. }
  535. },
  536. "type": "object"
  537. },
  538. "ruleSet-condition": {
  539. "anyOf": [
  540. {
  541. "instanceof": "RegExp"
  542. },
  543. {
  544. "minLength": 1,
  545. "type": "string"
  546. },
  547. {
  548. "instanceof": "Function"
  549. },
  550. {
  551. "$ref": "#/definitions/ruleSet-conditions"
  552. },
  553. {
  554. "additionalProperties": false,
  555. "properties": {
  556. "and": {
  557. "$ref": "#/definitions/ruleSet-conditions"
  558. },
  559. "exclude": {
  560. "$ref": "#/definitions/ruleSet-condition"
  561. },
  562. "include": {
  563. "$ref": "#/definitions/ruleSet-condition"
  564. },
  565. "not": {
  566. "$ref": "#/definitions/ruleSet-conditions"
  567. },
  568. "or": {
  569. "$ref": "#/definitions/ruleSet-conditions"
  570. },
  571. "test": {
  572. "$ref": "#/definitions/ruleSet-condition"
  573. }
  574. },
  575. "type": "object"
  576. }
  577. ]
  578. },
  579. "ruleSet-conditions": {
  580. "items": {
  581. "$ref": "#/definitions/ruleSet-condition"
  582. },
  583. "type": "array"
  584. },
  585. "ruleSet-loader": {
  586. "minLength": 1,
  587. "type": "string"
  588. },
  589. "ruleSet-query": {
  590. "anyOf": [
  591. {
  592. "type": "object"
  593. },
  594. {
  595. "type": "string"
  596. }
  597. ]
  598. },
  599. "ruleSet-rule": {
  600. "additionalProperties": false,
  601. "properties": {
  602. "enforce": {
  603. "enum": [
  604. "pre",
  605. "post"
  606. ]
  607. },
  608. "exclude": {
  609. "allOf": [
  610. {
  611. "$ref": "#/definitions/ruleSet-condition"
  612. },
  613. {
  614. "absolutePath": true
  615. }
  616. ]
  617. },
  618. "include": {
  619. "allOf": [
  620. {
  621. "$ref": "#/definitions/ruleSet-condition"
  622. },
  623. {
  624. "absolutePath": true
  625. }
  626. ]
  627. },
  628. "issuer": {
  629. "allOf": [
  630. {
  631. "$ref": "#/definitions/ruleSet-condition"
  632. },
  633. {
  634. "absolutePath": true
  635. }
  636. ]
  637. },
  638. "loader": {
  639. "anyOf": [
  640. {
  641. "$ref": "#/definitions/ruleSet-loader"
  642. },
  643. {
  644. "$ref": "#/definitions/ruleSet-use"
  645. }
  646. ]
  647. },
  648. "loaders": {
  649. "$ref": "#/definitions/ruleSet-use"
  650. },
  651. "oneOf": {
  652. "$ref": "#/definitions/ruleSet-rules"
  653. },
  654. "options": {
  655. "$ref": "#/definitions/ruleSet-query"
  656. },
  657. "parser": {
  658. "additionalProperties": true,
  659. "type": "object"
  660. },
  661. "query": {
  662. "$ref": "#/definitions/ruleSet-query"
  663. },
  664. "resource": {
  665. "allOf": [
  666. {
  667. "$ref": "#/definitions/ruleSet-condition"
  668. },
  669. {
  670. "absolutePath": true
  671. }
  672. ]
  673. },
  674. "resourceQuery": {
  675. "$ref": "#/definitions/ruleSet-condition"
  676. },
  677. "compiler": {
  678. "$ref": "#/definitions/ruleSet-condition"
  679. },
  680. "rules": {
  681. "$ref": "#/definitions/ruleSet-rules"
  682. },
  683. "test": {
  684. "allOf": [
  685. {
  686. "$ref": "#/definitions/ruleSet-condition"
  687. },
  688. {
  689. "absolutePath": true
  690. }
  691. ]
  692. },
  693. "use": {
  694. "$ref": "#/definitions/ruleSet-use"
  695. }
  696. },
  697. "type": "object"
  698. },
  699. "ruleSet-rules": {
  700. "items": {
  701. "$ref": "#/definitions/ruleSet-rule"
  702. },
  703. "type": "array"
  704. },
  705. "ruleSet-use": {
  706. "anyOf": [
  707. {
  708. "$ref": "#/definitions/ruleSet-use-item"
  709. },
  710. {
  711. "instanceof": "Function"
  712. },
  713. {
  714. "items": {
  715. "$ref": "#/definitions/ruleSet-use-item"
  716. },
  717. "type": "array"
  718. }
  719. ]
  720. },
  721. "ruleSet-use-item": {
  722. "anyOf": [
  723. {
  724. "$ref": "#/definitions/ruleSet-loader"
  725. },
  726. {
  727. "instanceof": "Function"
  728. },
  729. {
  730. "additionalProperties": false,
  731. "properties": {
  732. "loader": {
  733. "$ref": "#/definitions/ruleSet-loader"
  734. },
  735. "options": {
  736. "$ref": "#/definitions/ruleSet-query"
  737. },
  738. "query": {
  739. "$ref": "#/definitions/ruleSet-query"
  740. }
  741. },
  742. "type": "object"
  743. }
  744. ]
  745. },
  746. "filter-item-types": {
  747. "anyOf": [
  748. {
  749. "instanceof": "RegExp"
  750. },
  751. {
  752. "type": "string"
  753. },
  754. {
  755. "instanceof": "Function"
  756. }
  757. ]
  758. },
  759. "filter-types": {
  760. "anyOf": [
  761. {
  762. "$ref": "#/definitions/filter-item-types"
  763. },
  764. {
  765. "type": "array",
  766. "items": {
  767. "$ref": "#/definitions/filter-item-types"
  768. }
  769. }
  770. ]
  771. }
  772. },
  773. "properties": {
  774. "amd": {
  775. "description": "Set the value of `require.amd` and `define.amd`."
  776. },
  777. "bail": {
  778. "description": "Report the first error as a hard error instead of tolerating it.",
  779. "type": "boolean"
  780. },
  781. "cache": {
  782. "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
  783. "anyOf": [
  784. {
  785. "description": "You can pass `false` to disable it.",
  786. "type": "boolean"
  787. },
  788. {
  789. "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.",
  790. "type": "object"
  791. }
  792. ]
  793. },
  794. "context": {
  795. "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
  796. "type": "string",
  797. "absolutePath": true
  798. },
  799. "dependencies": {
  800. "description": "References to other configurations to depend on.",
  801. "items": {
  802. "type": "string"
  803. },
  804. "type": "array"
  805. },
  806. "devServer": {
  807. "type": "object"
  808. },
  809. "devtool": {
  810. "description": "A developer tool to enhance debugging.",
  811. "anyOf": [
  812. {
  813. "type": "string"
  814. },
  815. {
  816. "enum": [
  817. false
  818. ]
  819. }
  820. ]
  821. },
  822. "entry": {
  823. "$ref": "#/definitions/entry"
  824. },
  825. "externals": {
  826. "$ref": "#/definitions/externals"
  827. },
  828. "loader": {
  829. "description": "Custom values available in the loader context.",
  830. "type": "object"
  831. },
  832. "module": {
  833. "$ref": "#/definitions/module"
  834. },
  835. "name": {
  836. "description": "Name of the configuration. Used when loading multiple configurations.",
  837. "type": "string"
  838. },
  839. "node": {
  840. "description": "Include polyfills or mocks for various node stuff.",
  841. "anyOf": [
  842. {
  843. "enum": [
  844. false
  845. ]
  846. },
  847. {
  848. "additionalProperties": {
  849. "enum": [
  850. false,
  851. true,
  852. "mock",
  853. "empty"
  854. ]
  855. },
  856. "properties": {
  857. "Buffer": {
  858. "enum": [
  859. false,
  860. true,
  861. "mock"
  862. ]
  863. },
  864. "__dirname": {
  865. "enum": [
  866. false,
  867. true,
  868. "mock"
  869. ]
  870. },
  871. "__filename": {
  872. "enum": [
  873. false,
  874. true,
  875. "mock"
  876. ]
  877. },
  878. "console": {
  879. "enum": [
  880. false,
  881. true,
  882. "mock"
  883. ]
  884. },
  885. "global": {
  886. "type": "boolean"
  887. },
  888. "process": {
  889. "enum": [
  890. false,
  891. true,
  892. "mock"
  893. ]
  894. }
  895. },
  896. "type": "object"
  897. }
  898. ]
  899. },
  900. "output": {
  901. "$ref": "#/definitions/output"
  902. },
  903. "parallelism": {
  904. "description": "The number of parallel processed modules in the compilation.",
  905. "minimum": 1,
  906. "type": "number"
  907. },
  908. "performance": {
  909. "description": "Configuration for web performance recommendations.",
  910. "anyOf": [
  911. {
  912. "enum": [
  913. false
  914. ]
  915. },
  916. {
  917. "additionalProperties": false,
  918. "properties": {
  919. "assetFilter": {
  920. "description": "Filter function to select assets that are checked",
  921. "instanceof": "Function"
  922. },
  923. "hints": {
  924. "description": "Sets the format of the hints: warnings, errors or nothing at all",
  925. "enum": [
  926. false,
  927. "warning",
  928. "error"
  929. ]
  930. },
  931. "maxEntrypointSize": {
  932. "description": "Total size of an entry point (in bytes)",
  933. "type": "number"
  934. },
  935. "maxAssetSize": {
  936. "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints",
  937. "type": "number"
  938. }
  939. },
  940. "type": "object"
  941. }
  942. ]
  943. },
  944. "plugins": {
  945. "description": "Add additional plugins to the compiler.",
  946. "type": "array"
  947. },
  948. "profile": {
  949. "description": "Capture timing information for each module.",
  950. "type": "boolean"
  951. },
  952. "recordsInputPath": {
  953. "description": "Store compiler state to a json file.",
  954. "type": "string",
  955. "absolutePath": true
  956. },
  957. "recordsOutputPath": {
  958. "description": "Load compiler state from a json file.",
  959. "type": "string",
  960. "absolutePath": true
  961. },
  962. "recordsPath": {
  963. "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.",
  964. "type": "string",
  965. "absolutePath": true
  966. },
  967. "resolve": {
  968. "$ref": "#/definitions/resolve"
  969. },
  970. "resolveLoader": {
  971. "$ref": "#/definitions/resolve"
  972. },
  973. "stats": {
  974. "description": "Used by the webpack CLI program to pass stats options.",
  975. "anyOf": [
  976. {
  977. "type": "object",
  978. "additionalProperties": false,
  979. "properties": {
  980. "context": {
  981. "type": "string",
  982. "description": "context directory for request shortening",
  983. "absolutePath": true
  984. },
  985. "hash": {
  986. "type": "boolean",
  987. "description": "add the hash of the compilation"
  988. },
  989. "version": {
  990. "type": "boolean",
  991. "description": "add webpack version information"
  992. },
  993. "timings": {
  994. "type": "boolean",
  995. "description": "add timing information"
  996. },
  997. "performance": {
  998. "type": "boolean",
  999. "description": "add performance hint flags"
  1000. },
  1001. "depth": {
  1002. "type": "boolean",
  1003. "description": "add module depth in module graph"
  1004. },
  1005. "assets": {
  1006. "type": "boolean",
  1007. "description": "add assets information"
  1008. },
  1009. "env": {
  1010. "type": "boolean",
  1011. "description": "add --env information"
  1012. },
  1013. "colors": {
  1014. "oneOf": [
  1015. {
  1016. "type": "boolean",
  1017. "description": "`webpack --colors` equivalent"
  1018. },
  1019. {
  1020. "type": "object",
  1021. "additionalProperties": false,
  1022. "properties": {
  1023. "bold": {
  1024. "type": "string"
  1025. },
  1026. "red": {
  1027. "type": "string"
  1028. },
  1029. "green": {
  1030. "type": "string"
  1031. },
  1032. "cyan": {
  1033. "type": "string"
  1034. },
  1035. "magenta": {
  1036. "type": "string"
  1037. },
  1038. "yellow": {
  1039. "type": "string"
  1040. }
  1041. }
  1042. }
  1043. ]
  1044. },
  1045. "maxModules": {
  1046. "type": "number",
  1047. "description": "Set the maximum number of modules to be shown"
  1048. },
  1049. "chunks": {
  1050. "type": "boolean",
  1051. "description": "add chunk information"
  1052. },
  1053. "chunkModules": {
  1054. "type": "boolean",
  1055. "description": "add built modules information to chunk information"
  1056. },
  1057. "modules": {
  1058. "type": "boolean",
  1059. "description": "add built modules information"
  1060. },
  1061. "children": {
  1062. "type": "boolean",
  1063. "description": "add children information"
  1064. },
  1065. "cached": {
  1066. "type": "boolean",
  1067. "description": "add also information about cached (not built) modules"
  1068. },
  1069. "cachedAssets": {
  1070. "type": "boolean",
  1071. "description": "Show cached assets (setting this to `false` only shows emitted files)"
  1072. },
  1073. "reasons": {
  1074. "type": "boolean",
  1075. "description": "add information about the reasons why modules are included"
  1076. },
  1077. "source": {
  1078. "type": "boolean",
  1079. "description": "add the source code of modules"
  1080. },
  1081. "warnings": {
  1082. "type": "boolean",
  1083. "description": "add warnings"
  1084. },
  1085. "errors": {
  1086. "type": "boolean",
  1087. "description": "add errors"
  1088. },
  1089. "warningsFilter": {
  1090. "description": "Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions",
  1091. "$ref": "#/definitions/filter-types"
  1092. },
  1093. "excludeAssets": {
  1094. "description": "Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions",
  1095. "$ref": "#/definitions/filter-types"
  1096. },
  1097. "excludeModules": {
  1098. "description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
  1099. "$ref": "#/definitions/filter-types"
  1100. },
  1101. "exclude": {
  1102. "description": "Please use excludeModules instead.",
  1103. "$ref": "#/definitions/filter-types"
  1104. },
  1105. "entrypoints": {
  1106. "type": "boolean",
  1107. "description": "Display the entry points with the corresponding bundles"
  1108. },
  1109. "errorDetails": {
  1110. "type": "boolean",
  1111. "description": "add details to errors (like resolving log)"
  1112. },
  1113. "chunkOrigins": {
  1114. "type": "boolean",
  1115. "description": "add the origins of chunks and chunk merging info"
  1116. },
  1117. "modulesSort": {
  1118. "type": "string",
  1119. "description": "sort the modules by that field"
  1120. },
  1121. "moduleTrace": {
  1122. "type": "boolean",
  1123. "description": "add dependencies and origin of warnings/errors"
  1124. },
  1125. "chunksSort": {
  1126. "type": "string",
  1127. "description": "sort the chunks by that field"
  1128. },
  1129. "assetsSort": {
  1130. "type": "string",
  1131. "description": "sort the assets by that field"
  1132. },
  1133. "publicPath": {
  1134. "type": "boolean",
  1135. "description": "Add public path information"
  1136. },
  1137. "providedExports": {
  1138. "type": "boolean",
  1139. "description": "show exports provided by modules"
  1140. },
  1141. "usedExports": {
  1142. "type": "boolean",
  1143. "description": "show exports used by modules"
  1144. },
  1145. "optimizationBailout": {
  1146. "type": "boolean",
  1147. "description": "show reasons why optimization bailed out for modules"
  1148. }
  1149. }
  1150. },
  1151. {
  1152. "type": "boolean"
  1153. },
  1154. {
  1155. "enum": [
  1156. "none",
  1157. "errors-only",
  1158. "minimal",
  1159. "normal",
  1160. "detailed",
  1161. "verbose"
  1162. ]
  1163. }
  1164. ]
  1165. },
  1166. "target": {
  1167. "anyOf": [
  1168. {
  1169. "enum": [
  1170. "web",
  1171. "webworker",
  1172. "node",
  1173. "async-node",
  1174. "node-webkit",
  1175. "atom",
  1176. "electron",
  1177. "electron-main",
  1178. "electron-renderer"
  1179. ]
  1180. },
  1181. {
  1182. "instanceof": "Function"
  1183. }
  1184. ]
  1185. },
  1186. "watch": {
  1187. "description": "Enter watch mode, which rebuilds on file change.",
  1188. "type": "boolean"
  1189. },
  1190. "watchOptions": {
  1191. "properties": {
  1192. "aggregateTimeout": {
  1193. "description": "Delay the rebuilt after the first change. Value is a time in ms.",
  1194. "type": "number"
  1195. },
  1196. "poll": {
  1197. "anyOf": [
  1198. {
  1199. "description": "`true`: use polling.",
  1200. "type": "boolean"
  1201. },
  1202. {
  1203. "description": "`number`: use polling with specified interval.",
  1204. "type": "number"
  1205. }
  1206. ]
  1207. }
  1208. },
  1209. "type": "object"
  1210. }
  1211. },
  1212. "required": [
  1213. "entry"
  1214. ],
  1215. "type": "object"
  1216. }