options.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "additionalProperties": true,
  3. "properties": {
  4. "name": {
  5. "anyOf": [
  6. {
  7. "type": "string"
  8. },
  9. {
  10. "instanceof": "Function"
  11. }
  12. ]
  13. },
  14. "outputPath": {
  15. "anyOf": [
  16. {
  17. "type": "string"
  18. },
  19. {
  20. "instanceof": "Function"
  21. }
  22. ]
  23. },
  24. "publicPath": {
  25. "anyOf": [
  26. {
  27. "type": "string"
  28. },
  29. {
  30. "instanceof": "Function"
  31. }
  32. ]
  33. },
  34. "context": {
  35. "type": "string"
  36. },
  37. "emitFile": {
  38. "type": "boolean"
  39. },
  40. "regExp": {
  41. "anyOf": [
  42. {
  43. "type": "string"
  44. },
  45. {
  46. "instanceof": "RegExp"
  47. }
  48. ]
  49. }
  50. },
  51. "errorMessages": {
  52. "name": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#name)",
  53. "outputPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#outputpath)",
  54. "publicPath": "should be {String} or {Function} (https://github.com/webpack-contrib/file-loader#publicpath)",
  55. "context": "should be {String} (https://github.com/webpack-contrib/file-loader#context)",
  56. "emitFile": "should be {Boolean} (https://github.com/webpack-contrib/file-loader#emitfile)",
  57. "regExp": "should be {String} or {RegExp} (https://github.com/webpack-contrib/file-loader#regexp)"
  58. },
  59. "type": "object"
  60. }