1.0.0 • Published 9 years ago
jss-debug v1.0.0
JSS plugin for debugging
Adds rule name to the class name for debugging purposes.
(https://badges.gitter.im/Join Chat.svg)
Usage example
import jss from 'jss'
import debug from 'jss-debug'
jss.use(debug())
let sheet = jss.createStyleSheet({
button: {
'font-size': '20px'
}
})
console.log(sheet.toString())
.jss-0-0 {
font-size: 20px;
}
console.log(sheet.classes)
{ button: "jss-0-0 jss:button" }
<button class="jss-0-0 jss:button">Button</button>
Run tests
npm i
npm run test
License
MIT