@@ -68,7 +68,7 @@ exports[`validate options should throw an error on the "import" option with "tru
68
68
exports[`validate options should throw an error on the "modules" option with "{"auto":"invalid"}" value 1`] = `
69
69
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
70
70
- options.modules should be one of these:
71
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
71
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
72
72
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
73
73
Details:
74
74
* options.modules.auto should be one of these:
@@ -111,10 +111,10 @@ exports[`validate options should throw an error on the "modules" option with "{"
111
111
-> Allows to redefine basic loader context for local ident name (https://github.com/webpack-contrib/css-loader#localidentcontext)."
112
112
`;
113
113
114
- exports[`validate options should throw an error on the "modules" option with "{"localIdentHashPrefix ":true}" value 1`] = `
114
+ exports[`validate options should throw an error on the "modules" option with "{"localIdentHashSalt ":true}" value 1`] = `
115
115
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
116
- - options.modules.localIdentHashPrefix should be a non-empty string.
117
- -> Allows to add custom hash to generate more unique classes (https://github.com/webpack-contrib/css-loader#localidenthashprefix )."
116
+ - options.modules.localIdentHashSalt should be a non-empty string.
117
+ -> Allows to add custom hash to generate more unique classes (https://github.com/webpack-contrib/css-loader#localidenthashsalt )."
118
118
`;
119
119
120
120
exports[`validate options should throw an error on the "modules" option with "{"localIdentName":true}" value 1`] = `
@@ -126,7 +126,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
126
126
exports[`validate options should throw an error on the "modules" option with "{"localIdentRegExp":true}" value 1`] = `
127
127
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
128
128
- options.modules should be one of these:
129
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
129
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
130
130
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
131
131
Details:
132
132
* options.modules.localIdentRegExp should be one of these:
@@ -140,7 +140,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
140
140
exports[`validate options should throw an error on the "modules" option with "{"mode":"globals"}" value 1`] = `
141
141
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
142
142
- options.modules should be one of these:
143
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
143
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
144
144
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
145
145
Details:
146
146
* options.modules.mode should be one of these:
@@ -155,7 +155,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
155
155
exports[`validate options should throw an error on the "modules" option with "{"mode":"locals"}" value 1`] = `
156
156
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
157
157
- options.modules should be one of these:
158
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
158
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
159
159
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
160
160
Details:
161
161
* options.modules.mode should be one of these:
@@ -170,7 +170,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
170
170
exports[`validate options should throw an error on the "modules" option with "{"mode":"pures"}" value 1`] = `
171
171
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
172
172
- options.modules should be one of these:
173
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
173
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
174
174
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
175
175
Details:
176
176
* options.modules.mode should be one of these:
@@ -185,7 +185,7 @@ exports[`validate options should throw an error on the "modules" option with "{"
185
185
exports[`validate options should throw an error on the "modules" option with "{"mode":true}" value 1`] = `
186
186
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
187
187
- options.modules should be one of these:
188
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
188
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
189
189
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
190
190
Details:
191
191
* options.modules.mode should be one of these:
@@ -206,53 +206,53 @@ exports[`validate options should throw an error on the "modules" option with "{"
206
206
exports[`validate options should throw an error on the "modules" option with "globals" value 1`] = `
207
207
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
208
208
- options.modules should be one of these:
209
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
209
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
210
210
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
211
211
Details:
212
212
* options.modules should be a boolean.
213
213
* options.modules should be one of these:
214
214
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
215
215
* options.modules should be an object:
216
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
216
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
217
217
`;
218
218
219
219
exports[`validate options should throw an error on the "modules" option with "locals" value 1`] = `
220
220
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
221
221
- options.modules should be one of these:
222
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
222
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
223
223
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
224
224
Details:
225
225
* options.modules should be a boolean.
226
226
* options.modules should be one of these:
227
227
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
228
228
* options.modules should be an object:
229
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
229
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
230
230
`;
231
231
232
232
exports[`validate options should throw an error on the "modules" option with "pures" value 1`] = `
233
233
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
234
234
- options.modules should be one of these:
235
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
235
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
236
236
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
237
237
Details:
238
238
* options.modules should be a boolean.
239
239
* options.modules should be one of these:
240
240
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
241
241
* options.modules should be an object:
242
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
242
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
243
243
`;
244
244
245
245
exports[`validate options should throw an error on the "modules" option with "true" value 1`] = `
246
246
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
247
247
- options.modules should be one of these:
248
- boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
248
+ boolean | \\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\" | object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }
249
249
-> Enables/Disables CSS Modules and their configuration (https://github.com/webpack-contrib/css-loader#modules).
250
250
Details:
251
251
* options.modules should be a boolean.
252
252
* options.modules should be one of these:
253
253
\\"local\\" | \\"global\\" | \\"pure\\" | \\"icss\\"
254
254
* options.modules should be an object:
255
- object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
255
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashSalt ?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals?, exportLocalsConvention?, exportOnlyLocals? }"
256
256
`;
257
257
258
258
exports[`validate options should throw an error on the "sourceMap" option with "true" value 1`] = `
0 commit comments