Fela plugin preset for web applications
npm install fela-preset-webA Fela plugin preset for web applications.
It contains everything you need to start building cross-browser compatible apps.
#### Contains (exact order)
* fela-plugin-extend
* fela-plugin-embedded
* fela-plugin-prefixer
* fela-plugin-fallback-value
* fela-plugin-unit
sh
yarn add fela-preset-web
`
You may alternatively use npm i --save fela-preset-web.
Usage
Simply use the spread operator to add the preset.`javascript
import { createRenderer } from 'fela'
import webPreset from 'fela-preset-web'const renderer = createRenderer({
plugins: [
...webPreset,
// other plugins
]
})
`#### Configuration
Some plugins also accept some configuration options.
We can use the
createWebPreset factory and pass the options using the plugin name as a key.`javascript
import { createRenderer } from 'fela'
import { createWebPreset } from 'fela-preset-web'const renderer = createRenderer({
plugins: [
...createWebPreset({
'unit': [
'em',
{
margin: '%'
}
]
})
]
})
``