@@ -39,11 +39,12 @@ exports[`validate options should throw an error on the "importLoaders" option wi
39
39
exports [` validate options should throw an error on the "modules" option with "{ " auto" :" invalid" } " value 1` ] = `
40
40
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
41
41
- options.modules should be one of these:
42
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
42
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
43
43
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
44
44
Details :
45
45
* options .modules .auto should be one of these :
46
46
RegExp | function | boolean
47
+ -> Allows auto enable CSS modules based on filename (https : // github.com/webpack-contrib/css-loader#auto).
47
48
Details :
48
49
* options .modules .auto should be an instance of RegExp .
49
50
* options .modules .auto should be an instance of function .
@@ -52,7 +53,8 @@ exports[`validate options should throw an error on the "modules" option with "{"
52
53
53
54
exports [`validate options should throw an error on the "modules " option with "{" exportGlobals" :"invalid "}" value 1`] = `
54
55
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
55
- - options.modules.exportGlobals should be a boolean."
56
+ - options.modules.exportGlobals should be a boolean.
57
+ -> 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)."
56
58
` ;
57
59
58
60
exports [`validate options should throw an error on the "modules " option with "{" exportLocalsConvention" :"unknown "}" value 1`] = `
@@ -70,32 +72,37 @@ exports[`validate options should throw an error on the "modules" option with "{"
70
72
71
73
exports [`validate options should throw an error on the "modules " option with "{" getLocalIdent" :[]}" value 1`] = `
72
74
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
73
- - options.modules.getLocalIdent should be an instance of function."
75
+ - options.modules.getLocalIdent should be an instance of function.
76
+ -> Allows to specify a function to generate the classname (https://github.com/webpack-contrib/css-loader#getlocalident)."
74
77
` ;
75
78
76
79
exports [`validate options should throw an error on the "modules " option with "{" localIdentContext" :true }" value 1`] = `
77
80
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
78
- - options.modules.localIdentContext should be a non-empty string."
81
+ - options.modules.localIdentContext should be a non-empty string.
82
+ -> Allows to redefine basic loader context for local ident name (https://github.com/webpack-contrib/css-loader#localidentcontext)."
79
83
` ;
80
84
81
85
exports [`validate options should throw an error on the "modules " option with "{" localIdentHashPrefix" :true }" value 1`] = `
82
86
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
83
- - options.modules.localIdentHashPrefix should be a non-empty string."
87
+ - options.modules.localIdentHashPrefix should be a non-empty string.
88
+ -> Allows to add custom hash to generate more unique classes (https://github.com/webpack-contrib/css-loader#localidenthashprefix)."
84
89
` ;
85
90
86
91
exports [`validate options should throw an error on the "modules " option with "{" localIdentName" :true }" value 1`] = `
87
92
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
88
- - options.modules.localIdentName should be a non-empty string."
93
+ - options.modules.localIdentName should be a non-empty string.
94
+ -> Allows to configure the generated local ident name (https://github.com/webpack-contrib/css-loader#localidentname)."
89
95
` ;
90
96
91
97
exports [`validate options should throw an error on the "modules " option with "{" localIdentRegExp" :true }" value 1`] = `
92
98
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
93
99
- options.modules should be one of these:
94
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
100
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
95
101
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
96
102
Details :
97
103
* options .modules .localIdentRegExp should be one of these :
98
104
non - empty string | RegExp
105
+ - > Allows to specify custom RegExp for local ident name (https :// github.com/webpack-contrib/css-loader#localidentregexp).
99
106
Details :
100
107
* options .modules .localIdentRegExp should be a non - empty string .
101
108
* options .modules .localIdentRegExp should be an instance of RegExp ."
@@ -104,11 +111,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
104
111
exports [` validate options should throw an error on the "modules" option with "{ " mode" :" globals" } " value 1` ] = `
105
112
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
106
113
- options.modules should be one of these:
107
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
114
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
108
115
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
109
116
Details :
110
117
* options .modules .mode should be one of these :
111
118
\\" local\\ " | \\" global\\ " | \\" pure\\ " | function
119
+ -> Setup \`mode\` option (https : // github.com/webpack-contrib/css-loader#mode).
112
120
Details :
113
121
* options .modules .mode should be one of these :
114
122
\\"local \\" | \\"global \\" | \\"pure \\"
@@ -118,11 +126,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
118
126
exports [`validate options should throw an error on the "modules " option with "{" mode" :"locals "}" value 1`] = `
119
127
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
120
128
- options.modules should be one of these:
121
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
129
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
122
130
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
123
131
Details :
124
132
* options .modules .mode should be one of these :
125
133
\\" local\\ " | \\" global\\ " | \\" pure\\ " | function
134
+ -> Setup \`mode\` option (https : // github.com/webpack-contrib/css-loader#mode).
126
135
Details :
127
136
* options .modules .mode should be one of these :
128
137
\\"local \\" | \\"global \\" | \\"pure \\"
@@ -132,11 +141,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
132
141
exports [`validate options should throw an error on the "modules " option with "{" mode" :"pures "}" value 1`] = `
133
142
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
134
143
- options.modules should be one of these:
135
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
144
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
136
145
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
137
146
Details :
138
147
* options .modules .mode should be one of these :
139
148
\\" local\\ " | \\" global\\ " | \\" pure\\ " | function
149
+ -> Setup \`mode\` option (https : // github.com/webpack-contrib/css-loader#mode).
140
150
Details :
141
151
* options .modules .mode should be one of these :
142
152
\\"local \\" | \\"global \\" | \\"pure \\"
@@ -146,11 +156,12 @@ exports[`validate options should throw an error on the "modules" option with "{"
146
156
exports [`validate options should throw an error on the "modules " option with "{" mode" :true }" value 1`] = `
147
157
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
148
158
- options.modules should be one of these:
149
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
159
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
150
160
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
151
161
Details :
152
162
* options .modules .mode should be one of these :
153
163
\\" local\\ " | \\" global\\ " | \\" pure\\ " | function
164
+ -> Setup \`mode\` option (https : // github.com/webpack-contrib/css-loader#mode).
154
165
Details :
155
166
* options .modules .mode should be one of these :
156
167
\\"local \\" | \\"global \\" | \\"pure \\"
@@ -160,59 +171,59 @@ exports[`validate options should throw an error on the "modules" option with "{"
160
171
exports [`validate options should throw an error on the "modules " option with "{" namedExport" :"invalid "}" value 1`] = `
161
172
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
162
173
- options.modules.namedExport should be a boolean.
163
- -> Use the named export ES modules ."
174
+ -> Enables/disables ES modules named export for locals (https://github.com/webpack-contrib/css-loader#namedexport) ."
164
175
` ;
165
176
166
177
exports [`validate options should throw an error on the "modules " option with "globals " value 1`] = `
167
178
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
168
179
- options.modules should be one of these:
169
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
180
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
170
181
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
171
182
Details :
172
183
* options .modules should be a boolean .
173
184
* options .modules should be one of these :
174
185
\\" local\\ " | \\" global\\ " | \\" pure\\ "
175
186
* options .modules should be an object :
176
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportLocalsConvention?, exportOnlyLocals? }"
187
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals ?, exportLocalsConvention?, exportOnlyLocals? }"
177
188
`;
178
189
179
190
exports [` validate options should throw an error on the "modules" option with "locals" value 1` ] = `
180
191
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
181
192
- options.modules should be one of these:
182
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
193
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
183
194
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
184
195
Details :
185
196
* options .modules should be a boolean .
186
197
* options .modules should be one of these :
187
198
\\" local\\ " | \\" global\\ " | \\" pure\\ "
188
199
* options .modules should be an object :
189
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportLocalsConvention?, exportOnlyLocals? }"
200
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals ?, exportLocalsConvention?, exportOnlyLocals? }"
190
201
`;
191
202
192
203
exports [` validate options should throw an error on the "modules" option with "pures" value 1` ] = `
193
204
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
194
205
- options.modules should be one of these:
195
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
206
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
196
207
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
197
208
Details :
198
209
* options .modules should be a boolean .
199
210
* options .modules should be one of these :
200
211
\\" local\\ " | \\" global\\ " | \\" pure\\ "
201
212
* options .modules should be an object :
202
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportLocalsConvention?, exportOnlyLocals? }"
213
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals ?, exportLocalsConvention?, exportOnlyLocals? }"
203
214
`;
204
215
205
216
exports [` validate options should throw an error on the "modules" option with "true" value 1` ] = `
206
217
"Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
207
218
- options.modules should be one of these:
208
- boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , exportGlobals ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportLocalsConvention ? , exportOnlyLocals ? }
219
+ boolean | \\ "local\\ " | \\ "global\\ " | \\ "pure\\ " | object { auto ? , mode ? , localIdentName ? , localIdentContext ? , localIdentHashPrefix ? , localIdentRegExp ? , getLocalIdent ? , namedExport ? , exportGlobals ? , exportLocalsConvention ? , exportOnlyLocals ? }
209
220
- > Enables / Disables CSS Modules and their configuration (https :// github.com/webpack-contrib/css-loader#modules).
210
221
Details :
211
222
* options .modules should be a boolean .
212
223
* options .modules should be one of these :
213
224
\\" local\\ " | \\" global\\ " | \\" pure\\ "
214
225
* options .modules should be an object :
215
- object { auto?, mode?, exportGlobals?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportLocalsConvention?, exportOnlyLocals? }"
226
+ object { auto?, mode?, localIdentName?, localIdentContext?, localIdentHashPrefix?, localIdentRegExp?, getLocalIdent?, namedExport?, exportGlobals ?, exportLocalsConvention?, exportOnlyLocals? }"
216
227
`;
217
228
218
229
exports [` validate options should throw an error on the "sourceMap" option with "true" value 1` ] = `
0 commit comments