UNPKG

7.14 kBJSONView Raw
1{
2 "title": "CSS Loader options",
3 "additionalProperties": false,
4 "properties": {
5 "url": {
6 "description": "Allows to enables/disables `url()`/`image-set()` functions handling.",
7 "link": "https://github.com/webpack-contrib/css-loader#url",
8 "anyOf": [
9 {
10 "type": "boolean"
11 },
12 {
13 "type": "object",
14 "properties": {
15 "filter": {
16 "instanceof": "Function"
17 }
18 },
19 "additionalProperties": false
20 }
21 ]
22 },
23 "import": {
24 "description": "Allows to enables/disables `@import` at-rules handling.",
25 "link": "https://github.com/webpack-contrib/css-loader#import",
26 "anyOf": [
27 {
28 "type": "boolean"
29 },
30 {
31 "type": "object",
32 "properties": {
33 "filter": {
34 "instanceof": "Function"
35 }
36 },
37 "additionalProperties": false
38 }
39 ]
40 },
41 "modules": {
42 "description": "Allows to enable/disable CSS Modules or ICSS and setup configuration.",
43 "link": "https://github.com/webpack-contrib/css-loader#modules",
44 "anyOf": [
45 {
46 "type": "boolean"
47 },
48 {
49 "enum": ["local", "global", "pure", "icss"]
50 },
51 {
52 "type": "object",
53 "additionalProperties": false,
54 "properties": {
55 "auto": {
56 "description": "Allows auto enable CSS modules based on filename.",
57 "link": "https://github.com/webpack-contrib/css-loader#auto",
58 "anyOf": [
59 {
60 "instanceof": "RegExp"
61 },
62 {
63 "instanceof": "Function"
64 },
65 {
66 "type": "boolean"
67 }
68 ]
69 },
70 "mode": {
71 "description": "Setup `mode` option.",
72 "link": "https://github.com/webpack-contrib/css-loader#mode",
73 "anyOf": [
74 {
75 "enum": ["local", "global", "pure", "icss"]
76 },
77 {
78 "instanceof": "Function"
79 }
80 ]
81 },
82 "localIdentName": {
83 "description": "Allows to configure the generated local ident name.",
84 "link": "https://github.com/webpack-contrib/css-loader#localidentname",
85 "type": "string",
86 "minLength": 1
87 },
88 "localIdentContext": {
89 "description": "Allows to redefine basic loader context for local ident name.",
90 "link": "https://github.com/webpack-contrib/css-loader#localidentcontext",
91 "type": "string",
92 "minLength": 1
93 },
94 "localIdentHashSalt": {
95 "description": "Allows to add custom hash to generate more unique classes.",
96 "link": "https://github.com/webpack-contrib/css-loader#localidenthashsalt",
97 "type": "string",
98 "minLength": 1
99 },
100 "localIdentHashFunction": {
101 "description": "Allows to specify hash function to generate classes.",
102 "link": "https://github.com/webpack-contrib/css-loader#localidenthashfunction",
103 "type": "string",
104 "minLength": 1
105 },
106 "localIdentHashDigest": {
107 "description": "Allows to specify hash digest to generate classes.",
108 "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigest",
109 "type": "string",
110 "minLength": 1
111 },
112 "localIdentHashDigestLength": {
113 "description": "Allows to specify hash digest length to generate classes.",
114 "link": "https://github.com/webpack-contrib/css-loader#localidenthashdigestlength",
115 "type": "number"
116 },
117 "localIdentRegExp": {
118 "description": "Allows to specify custom RegExp for local ident name.",
119 "link": "https://github.com/webpack-contrib/css-loader#localidentregexp",
120 "anyOf": [
121 {
122 "type": "string",
123 "minLength": 1
124 },
125 {
126 "instanceof": "RegExp"
127 }
128 ]
129 },
130 "getLocalIdent": {
131 "description": "Allows to specify a function to generate the classname.",
132 "link": "https://github.com/webpack-contrib/css-loader#getlocalident",
133 "instanceof": "Function"
134 },
135 "namedExport": {
136 "description": "Enables/disables ES modules named export for locals.",
137 "link": "https://github.com/webpack-contrib/css-loader#namedexport",
138 "type": "boolean"
139 },
140 "exportGlobals": {
141 "description": "Allows to export names from global class or id, so you can use that as local name.",
142 "link": "https://github.com/webpack-contrib/css-loader#exportglobals",
143 "type": "boolean"
144 },
145 "exportLocalsConvention": {
146 "description": "Style of exported classnames.",
147 "link": "https://github.com/webpack-contrib/css-loader#localsconvention",
148 "anyOf": [
149 {
150 "enum": [
151 "asIs",
152 "camelCase",
153 "camelCaseOnly",
154 "dashes",
155 "dashesOnly"
156 ]
157 },
158 {
159 "instanceof": "Function"
160 }
161 ]
162 },
163 "exportOnlyLocals": {
164 "description": "Export only locals.",
165 "link": "https://github.com/webpack-contrib/css-loader#exportonlylocals",
166 "type": "boolean"
167 }
168 }
169 }
170 ]
171 },
172 "sourceMap": {
173 "description": "Allows to enable/disable source maps.",
174 "link": "https://github.com/webpack-contrib/css-loader#sourcemap",
175 "type": "boolean"
176 },
177 "importLoaders": {
178 "description": "Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.",
179 "link": "https://github.com/webpack-contrib/css-loader#importloaders",
180 "anyOf": [
181 {
182 "type": "boolean"
183 },
184 {
185 "type": "string"
186 },
187 {
188 "type": "integer"
189 }
190 ]
191 },
192 "esModule": {
193 "description": "Use the ES modules syntax.",
194 "link": "https://github.com/webpack-contrib/css-loader#esmodule",
195 "type": "boolean"
196 },
197 "exportType": {
198 "description": "Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).",
199 "link": "https://github.com/webpack-contrib/css-loader#exporttype",
200 "enum": ["array", "string", "css-style-sheet"]
201 }
202 },
203 "type": "object"
204}