Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fela-preset-web

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-preset-web

Fela plugin preset for web applications

  • 12.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
908
decreased by-83.47%
Maintainers
2
Weekly downloads
 
Created
Source

fela-preset-web

npm version npm downloads Bundlephobia

A Fela plugin preset for web applications.
It contains everything you need to start building cross-browser compatible apps.

Contains (exact order)

Installation

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.

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.

import { createRenderer } from 'fela'
import { createWebPreset } from 'fela-preset-web'

const renderer = createRenderer({
  plugins: [
    ...createWebPreset({
      'unit': [
        'em',
        {
          margin: '%'
        }
      ]
    })
  ]
})

License

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

Keywords

FAQs

Package last updated on 07 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc