You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,27 @@ You can also disable or enforce minification with the `minimize` query parameter
233
233
234
234
`css-loader?-import` disables `@import` handling.
235
235
236
+
### Camel case
237
+
238
+
By default, the exported JSON keys mirror the class names. If you want to camelize class names (useful in Javascript), pass the query parameter `camelCase` to the loader.
239
+
240
+
Example:
241
+
242
+
`css-loader?camelCase`
243
+
244
+
Usage:
245
+
```css
246
+
/* file.css */
247
+
248
+
.class-name { /* ... */ }
249
+
```
250
+
251
+
```js
252
+
// javascript
253
+
254
+
require('file.css').className
255
+
```
256
+
236
257
## License
237
258
238
259
MIT (http://www.opensource.org/licenses/mit-license.php)
0 commit comments