fela-logger

12.2.1 • Public • Published

fela-logger

npm version npm downloads Bundlephobia

Logging tool for Fela. Logs changes to the console, grouped by selector, animation name or font family.

Installation

yarn add fela-logger

You may alternatively use npm i --save fela-logger.

Usage

import { createRenderer } from 'fela'
import logger from 'fela-logger'

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

Configuration

Options
 Option Value Default Description
logCSS (boolean) false logs rendered CSS string
formatCSS (boolean) false   logs formatted CSS strings
only together with logCSS: true
Example
import { createRenderer } from 'fela'
import logger from 'fela-logger'

const loggerEnhancer = logger({
  logCSS: true,
  formatCSS: true
})

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

Example

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-logger

Weekly Downloads

10

Version

12.2.1

License

MIT

Unpacked Size

8.98 kB

Total Files

5

Last publish

Collaborators

  • rofrischmann
  • txhawks