fela-plugin-multiple-selectors

12.2.1 • Public • Published

fela-plugin-multiple-selectors

npm version npm downloads Bundlephobia

Resolves comma-separated multiple selectors into single separate object properties.
It also removes whitespace between selectors.

Installation

yarn add fela-plugin-multiple-selectors

You may alternatively use npm i --save fela-plugin-multiple-selectors.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import multipleSelectors from 'fela-plugin-multiple-selectors'

const renderer = createRenderer({
  plugins: [multipleSelectors()],
})

Example

Input

{
  color: 'blue',
  ':hover, :focus': {
    color: 'red'
  }
}

Output

{
  color: 'blue',
  ':hover': {
    color: 'red'
  }
  ':focus': {
    color: 'red'
  }
}

License

Fela is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with by @robinweser and all the great contributors.

Package Sidebar

Install

npm i fela-plugin-multiple-selectors

Weekly Downloads

5,080

Version

12.2.1

License

MIT

Unpacked Size

11 kB

Total Files

6

Last publish

Collaborators

  • rofrischmann