Fela plugin to resolves multiple selectors
npm install fela-plugin-multiple-selectorsResolves comma-separated multiple selectors into single separate object properties.
It also removes whitespace between selectors.
``sh`
yarn add fela-plugin-multiple-selectors
You may alternatively use npm i --save fela-plugin-multiple-selectors.
Make sure to read the documentation on how to use plugins.
`javascript
import { createRenderer } from 'fela'
import multipleSelectors from 'fela-plugin-multiple-selectors'
const renderer = createRenderer({
plugins: [multipleSelectors()],
})
`
#### Input
`javascript`
{
color: 'blue',
':hover, :focus': {
color: 'red'
}
}
#### Output
`javascript``
{
color: 'blue',
':hover': {
color: 'red'
}
':focus': {
color: 'red'
}
}
Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with ♥ by @robinweser and all the great contributors.