1.0.9 • Published 6 years ago

fela-combine-arrays v1.0.9

Weekly downloads
369
License
MIT
Repository
github
Last release
6 years ago

fela-combine-arrays

Deprecated!The combine arrays enhancer is deprecated, please remove it from your Fela configuration.It is obsolete as css-in-js-utils' assignStyle now combines arrays by default.

Enables merging array values when combining rules. This is especially useful if you want to deeply merge extend arrays using fela-plugin-extend.

Installation

yarn add fela-combine-arrays

You may alternatively use npm i --save fela-combine-arrays.

Usage

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

import { createRenderer } from 'fela'
import combineArrays from 'fela-combine-arrays'

const renderer = createRenderer({
  enhancers: [ combineArrays() ]
})

Configuration

To only merge a specific set of property values, you may pass an array of properties.

Example
import { createRenderer } from 'fela'
import combineArrays from 'fela-combine-arrays'

const combineArrayEnhancer = combineArrays(['extend'])

const renderer = createRenderer({
  enhancers: [ combineArrayEnhancer ]
})

License

Fela is licensed under the MIT License. Documentation is licensed under Creative Common License. Created with ♥ by @rofrischmann and all the great contributors.

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago