@@ -85,7 +85,7 @@ exports[`validate options should throw an error on the "importLoaders" option wi
85
85
exports[`validate options should throw an error on the "modules" option with "{"auto":"invalid"}" value 1`] = `
86
86
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
87
87
- options.modules should be one of these:
88
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
88
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
89
89
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
90
90
-> Read more at https://github.com/webpack-contrib/css-loader#modules
91
91
Details:
@@ -109,7 +109,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
109
109
exports[`validate options should throw an error on the "modules" option with "{"exportLocalsConvention":"unknown"}" value 1`] = `
110
110
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
111
111
- options.modules should be one of these:
112
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
112
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
113
113
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
114
114
-> Read more at https://github.com/webpack-contrib/css-loader#modules
115
115
Details:
@@ -130,6 +130,20 @@ exports[`validate options should throw an error on the "modules" option with "{"
130
130
-> Read more at https://github.com/webpack-contrib/css-loader#exportonlylocals"
131
131
`;
132
132
133
+ exports[`validate options should throw an error on the "modules" option with "{"getJSON":"invalid"}" value 1`] = `
134
+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
135
+ - options.modules.getJSON should be an instance of function.
136
+ -> Allows outputting of CSS modules mapping through a callback.
137
+ -> Read more at https://github.com/webpack-contrib/css-loader#getJSON"
138
+ `;
139
+
140
+ exports[`validate options should throw an error on the "modules" option with "{"getJSON":true}" value 1`] = `
141
+ "Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
142
+ - options.modules.getJSON should be an instance of function.
143
+ -> Allows outputting of CSS modules mapping through a callback.
144
+ -> Read more at https://github.com/webpack-contrib/css-loader#getJSON"
145
+ `;
146
+
133
147
exports[`validate options should throw an error on the "modules" option with "{"getLocalIdent":[]}" value 1`] = `
134
148
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
135
149
- options.modules.getLocalIdent should be an instance of function.
@@ -161,7 +175,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
161
175
exports[`validate options should throw an error on the "modules" option with "{"localIdentRegExp":true}" value 1`] = `
162
176
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
163
177
- options.modules should be one of these:
164
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
178
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
165
179
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
166
180
-> Read more at https://github.com/webpack-contrib/css-loader#modules
167
181
Details:
@@ -177,7 +191,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
177
191
exports[`validate options should throw an error on the "modules" option with "{"mode":"globals"}" value 1`] = `
178
192
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
179
193
- options.modules should be one of these:
180
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
194
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
181
195
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
182
196
-> Read more at https://github.com/webpack-contrib/css-loader#modules
183
197
Details:
@@ -194,7 +208,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
194
208
exports[`validate options should throw an error on the "modules" option with "{"mode":"locals"}" value 1`] = `
195
209
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
196
210
- options.modules should be one of these:
197
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
211
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
198
212
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
199
213
-> Read more at https://github.com/webpack-contrib/css-loader#modules
200
214
Details:
@@ -211,7 +225,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
211
225
exports[`validate options should throw an error on the "modules" option with "{"mode":"pures"}" value 1`] = `
212
226
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
213
227
- options.modules should be one of these:
214
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
228
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
215
229
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
216
230
-> Read more at https://github.com/webpack-contrib/css-loader#modules
217
231
Details:
@@ -228,7 +242,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
228
242
exports[`validate options should throw an error on the "modules" option with "{"mode":true}" value 1`] = `
229
243
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
230
244
- options.modules should be one of these:
231
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
245
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
232
246
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
233
247
-> Read more at https://github.com/webpack-contrib/css-loader#modules
234
248
Details:
@@ -252,57 +266,57 @@ exports[`validate options should throw an error on the "modules" option with "{"
252
266
exports[`validate options should throw an error on the "modules" option with "globals" value 1`] = `
253
267
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
254
268
- options.modules should be one of these:
255
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
269
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
256
270
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
257
271
-> Read more at https://github.com/webpack-contrib/css-loader#modules
258
272
Details:
259
273
* options.modules should be a boolean.
260
274
* options.modules should be one of these:
261
275
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
262
276
* options.modules should be an object:
263
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
277
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }"
264
278
`;
265
279
266
280
exports[`validate options should throw an error on the "modules" option with "locals" value 1`] = `
267
281
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
268
282
- options.modules should be one of these:
269
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
283
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
270
284
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
271
285
-> Read more at https://github.com/webpack-contrib/css-loader#modules
272
286
Details:
273
287
* options.modules should be a boolean.
274
288
* options.modules should be one of these:
275
289
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
276
290
* options.modules should be an object:
277
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
291
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }"
278
292
`;
279
293
280
294
exports[`validate options should throw an error on the "modules" option with "pures" value 1`] = `
281
295
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
282
296
- options.modules should be one of these:
283
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
297
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
284
298
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
285
299
-> Read more at https://github.com/webpack-contrib/css-loader#modules
286
300
Details:
287
301
* options.modules should be a boolean.
288
302
* options.modules should be one of these:
289
303
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
290
304
* options.modules should be an object:
291
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
305
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }"
292
306
`;
293
307
294
308
exports[`validate options should throw an error on the "modules" option with "true" value 1`] = `
295
309
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
296
310
- options.modules should be one of these:
297
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
311
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }
298
312
-> Allows to enable/disable CSS Modules or ICSS and setup configuration.
299
313
-> Read more at https://github.com/webpack-contrib/css-loader#modules
300
314
Details:
301
315
* options.modules should be a boolean.
302
316
* options.modules should be one of these:
303
317
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
304
318
* options.modules should be an object:
305
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
319
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt?, localIdentHashFunction?, localIdentHashDigest?, localIdentHashDigestLength?, hashStrategy?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals?, getJSON? }"
306
320
`;
307
321
308
322
exports[`validate options should throw an error on the "sourceMap" option with "true" value 1`] = `
0 commit comments