Package Exports
- jss-extend
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-extend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Inheritance plugin for JSS
This plugin implements extend
keyword for jss.
Take a look at examples directory.
var redButton = {
background: 'red'
}
exports.styles = {
'.button': {
extend: redButton, // can be an array of styles
'font-size': '20px'
}
}
.button {
background: red;
font-size: 20px;
}
Register plugin
var jss = require('jss')
var extend = require('jss-extend')
jss.use(extend)
Run tests
Locally
npm i
open test/local.html
From github
License
MIT