Package Exports
- jss-camel-case
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jss-camel-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
JSS plugin that allows to write camel cased rule properties
Internally it converts everything back to dash separated names.
Make sure you read how to use plugins in general.
Example
const styles = {
container: {
fontSize: '20px',
zIndex: 1,
lineHeight: 1.2
}
}
.container-a24234 {
font-size: 20px;
z-index: 1;
line-height: 1.2;
}
Demo
Issues
File a bug against cssinjs/jss prefixed with [jss-camel-case].
Run tests
npm i
npm run test
License
MIT