fela-logger
v12.2.1
Published
Logging tool for Fela
Downloads
85
Readme
fela-logger
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 stringsonly 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.