UNPKG

2.05 kBJSONView Raw
1{
2 "type": "object",
3 "properties": {
4 "limit": {
5 "description": "Enables/Disables transformation target file into base64 URIs (https://github.com/webpack-contrib/url-loader#limit).",
6 "type": ["boolean", "number", "string"]
7 },
8 "encoding": {
9 "description": "Specify the encoding which the file will be in-lined with.",
10 "oneOf": [
11 {
12 "type": "boolean"
13 },
14 {
15 "enum": [
16 "utf8",
17 "utf16le",
18 "latin1",
19 "base64",
20 "hex",
21 "ascii",
22 "binary",
23 "ucs2"
24 ]
25 }
26 ]
27 },
28 "mimetype": {
29 "description": "The MIME type for the file to be transformed (https://github.com/webpack-contrib/url-loader#mimetype).",
30 "oneOf": [
31 {
32 "type": "boolean"
33 },
34 {
35 "type": "string"
36 }
37 ]
38 },
39 "generator": {
40 "description": "Adding custom implementation for encoding files.",
41 "instanceof": "Function"
42 },
43 "fallback": {
44 "description": "An alternative loader to use when a target file's size exceeds the limit set in the limit option (https://github.com/webpack-contrib/url-loader#fallback).",
45 "anyOf": [
46 {
47 "type": "string"
48 },
49 {
50 "additionalProperties": false,
51 "properties": {
52 "loader": {
53 "description": "Fallback loader name.",
54 "type": "string"
55 },
56 "options": {
57 "description": "Fallback loader options.",
58 "anyOf": [
59 {
60 "type": "object"
61 },
62 {
63 "type": "string"
64 }
65 ]
66 }
67 },
68 "type": "object"
69 }
70 ]
71 },
72 "esModule": {
73 "description": "By default, url-loader generates JS modules that use the ES modules syntax.",
74 "type": "boolean"
75 }
76 },
77 "additionalProperties": true
78}