options.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "additionalProperties": true,
  3. "properties": {
  4. "name": {
  5. "description": "The filename template for the target file(s) (https://github.com/webpack-contrib/file-loader#name).",
  6. "anyOf": [
  7. {
  8. "type": "string"
  9. },
  10. {
  11. "instanceof": "Function"
  12. }
  13. ]
  14. },
  15. "outputPath": {
  16. "description": "A filesystem path where the target file(s) will be placed (https://github.com/webpack-contrib/file-loader#outputpath).",
  17. "anyOf": [
  18. {
  19. "type": "string"
  20. },
  21. {
  22. "instanceof": "Function"
  23. }
  24. ]
  25. },
  26. "publicPath": {
  27. "description": "A custom public path for the target file(s) (https://github.com/webpack-contrib/file-loader#publicpath).",
  28. "anyOf": [
  29. {
  30. "type": "string"
  31. },
  32. {
  33. "instanceof": "Function"
  34. }
  35. ]
  36. },
  37. "postTransformPublicPath": {
  38. "description": "A custom transformation function for post-processing the publicPath (https://github.com/webpack-contrib/file-loader#posttransformpublicpath).",
  39. "instanceof": "Function"
  40. },
  41. "context": {
  42. "description": "A custom file context (https://github.com/webpack-contrib/file-loader#context).",
  43. "type": "string"
  44. },
  45. "emitFile": {
  46. "description": "Enables/Disables emit files (https://github.com/webpack-contrib/file-loader#emitfile).",
  47. "type": "boolean"
  48. },
  49. "regExp": {
  50. "description": "A Regular Expression to one or many parts of the target file path. The capture groups can be reused in the name property using [N] placeholder (https://github.com/webpack-contrib/file-loader#regexp).",
  51. "anyOf": [
  52. {
  53. "type": "string"
  54. },
  55. {
  56. "instanceof": "RegExp"
  57. }
  58. ]
  59. },
  60. "esModule": {
  61. "description": "By default, file-loader generates JS modules that use the ES modules syntax.",
  62. "type": "boolean"
  63. }
  64. },
  65. "type": "object"
  66. }