1 | {
|
2 | "additionalProperties": false,
|
3 | "properties": {
|
4 | "url": {
|
5 | "description": "Enables/Disables 'url'/'image-set' functions handling (https://github.com/webpack-contrib/css-loader#url).",
|
6 | "anyOf": [
|
7 | {
|
8 | "type": "boolean"
|
9 | },
|
10 | {
|
11 | "instanceof": "Function"
|
12 | }
|
13 | ]
|
14 | },
|
15 | "import": {
|
16 | "description": "Enables/Disables '@import' at-rules handling (https://github.com/webpack-contrib/css-loader#import).",
|
17 | "anyOf": [
|
18 | {
|
19 | "type": "boolean"
|
20 | },
|
21 | {
|
22 | "instanceof": "Function"
|
23 | }
|
24 | ]
|
25 | },
|
26 | "modules": {
|
27 | "description": "Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).",
|
28 | "anyOf": [
|
29 | {
|
30 | "type": "boolean"
|
31 | },
|
32 | {
|
33 | "enum": ["local", "global", "pure"]
|
34 | },
|
35 | {
|
36 | "type": "object",
|
37 | "additionalProperties": false,
|
38 | "properties": {
|
39 | "compileType": {
|
40 | "description": "Controls the extent to which css-loader will process module code (https://github.com/webpack-contrib/css-loader#type)",
|
41 | "enum": ["module", "icss"]
|
42 | },
|
43 | "auto": {
|
44 | "description": "Allows auto enable CSS modules based on filename (https://github.com/webpack-contrib/css-loader#auto).",
|
45 | "anyOf": [
|
46 | {
|
47 | "instanceof": "RegExp"
|
48 | },
|
49 | {
|
50 | "instanceof": "Function"
|
51 | },
|
52 | {
|
53 | "type": "boolean"
|
54 | }
|
55 | ]
|
56 | },
|
57 | "mode": {
|
58 | "description": "Setup `mode` option (https://github.com/webpack-contrib/css-loader#mode).",
|
59 | "anyOf": [
|
60 | {
|
61 | "enum": ["local", "global", "pure"]
|
62 | },
|
63 | {
|
64 | "instanceof": "Function"
|
65 | }
|
66 | ]
|
67 | },
|
68 | "localIdentName": {
|
69 | "description": "Allows to configure the generated local ident name (https://github.com/webpack-contrib/css-loader#localidentname).",
|
70 | "type": "string",
|
71 | "minLength": 1
|
72 | },
|
73 | "localIdentContext": {
|
74 | "description": "Allows to redefine basic loader context for local ident name (https://github.com/webpack-contrib/css-loader#localidentcontext).",
|
75 | "type": "string",
|
76 | "minLength": 1
|
77 | },
|
78 | "localIdentHashPrefix": {
|
79 | "description": "Allows to add custom hash to generate more unique classes (https://github.com/webpack-contrib/css-loader#localidenthashprefix).",
|
80 | "type": "string",
|
81 | "minLength": 1
|
82 | },
|
83 | "localIdentRegExp": {
|
84 | "description": "Allows to specify custom RegExp for local ident name (https://github.com/webpack-contrib/css-loader#localidentregexp).",
|
85 | "anyOf": [
|
86 | {
|
87 | "type": "string",
|
88 | "minLength": 1
|
89 | },
|
90 | {
|
91 | "instanceof": "RegExp"
|
92 | }
|
93 | ]
|
94 | },
|
95 | "getLocalIdent": {
|
96 | "description": "Allows to specify a function to generate the classname (https://github.com/webpack-contrib/css-loader#getlocalident).",
|
97 | "instanceof": "Function"
|
98 | },
|
99 | "namedExport": {
|
100 | "description": "Enables/disables ES modules named export for locals (https://github.com/webpack-contrib/css-loader#namedexport).",
|
101 | "type": "boolean"
|
102 | },
|
103 | "exportGlobals": {
|
104 | "description": "Allows to export names from global class or id, so you can use that as local name (https://github.com/webpack-contrib/css-loader#exportglobals).",
|
105 | "type": "boolean"
|
106 | },
|
107 | "exportLocalsConvention": {
|
108 | "description": "Style of exported classnames (https://github.com/webpack-contrib/css-loader#localsconvention).",
|
109 | "enum": [
|
110 | "asIs",
|
111 | "camelCase",
|
112 | "camelCaseOnly",
|
113 | "dashes",
|
114 | "dashesOnly"
|
115 | ]
|
116 | },
|
117 | "exportOnlyLocals": {
|
118 | "description": "Export only locals (https://github.com/webpack-contrib/css-loader#exportonlylocals).",
|
119 | "type": "boolean"
|
120 | }
|
121 | }
|
122 | }
|
123 | ]
|
124 | },
|
125 | "sourceMap": {
|
126 | "description": "Enables/Disables generation of source maps (https://github.com/webpack-contrib/css-loader#sourcemap).",
|
127 | "type": "boolean"
|
128 | },
|
129 | "importLoaders": {
|
130 | "description": "Enables/Disables or setups number of loaders applied before CSS loader (https://github.com/webpack-contrib/css-loader#importloaders).",
|
131 | "anyOf": [
|
132 | {
|
133 | "type": "boolean"
|
134 | },
|
135 | {
|
136 | "type": "string"
|
137 | },
|
138 | {
|
139 | "type": "integer"
|
140 | }
|
141 | ]
|
142 | },
|
143 | "esModule": {
|
144 | "description": "Use the ES modules syntax (https://github.com/webpack-contrib/css-loader#esmodule).",
|
145 | "type": "boolean"
|
146 | }
|
147 | },
|
148 | "type": "object"
|
149 | }
|