Skip to content

Commit

Permalink
Merge pull request #242 from ianmcnally/master
Browse files Browse the repository at this point in the history
add documentation for camelCase query parameter
  • Loading branch information
sokra committed Apr 10, 2016
2 parents 7d2abba + 68f5a69 commit 2764541
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -233,6 +233,27 @@ You can also disable or enforce minification with the `minimize` query parameter

`css-loader?-import` disables `@import` handling.

### Camel case

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.

Example:

`css-loader?camelCase`

Usage:
```css
/* file.css */

.class-name { /* ... */ }
```

```js
// javascript

require('file.css').className
```

## License

MIT (http://www.opensource.org/licenses/mit-license.php)

0 comments on commit 2764541

Please sign in to comment.