JSS plugin that adds default px unit to numeric values where needed
npm install jss-pxThis plugin lets you omit the px unit from values of style properties.

``javascript
import jss from 'jss'
import px from 'jss-px'
jss.use(px())
let sheet = jss.createStyleSheet({
container: {
'font-size': 20,
'z-index': 1,
'line-height': 1.2
}
})
`
`javascript`
console.log(sheet.toString())`css`
.jss-0-0 {
font-size: 20px;
z-index: 1;
line-height: 1.2;
}
`javascript`
console.log(sheet.classes)`javascript`
{ container: "jss-0-0" }
`bash``
npm i
npm run test
MIT