Neutrino Packing Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

postcss-browser-reporter

0.5.0 • Public • Published

PostCSS Browser Reporter Build Status

PostCSS plugin to report warning messages right in your browser.

If a plugin before this one is throwning a warning, this plugin will append warning messages to html:before.

Postcss-browser-reporter – warnings from other postcss plugins in your browser

Usage

Put this plugin after all plugins if you want to cover all possible warnings:

postcss([
  require('other-plugin'),
  require('postcss-browser-reporter')
])

Options

selector ({String}, default: html::before)

You can override selector that will be used to display messages:

var messages = require('postcss-browser-reporter')
postcss([
  messages({
    selector: 'body:before'
  })
])

styles ({Object}, default: opinionated styles)

You can override default styles applied to the selector:

var messages = require('postcss-browser-reporter')
postcss([
  messages({
    styles: {
      color: 'gray',
      'text-align': 'center'
    }
  })
])

See PostCSS docs for examples for your environment.

License

The MIT License

install

npm i postcss-browser-reporter

Downloadsweekly downloads

33,105

version

0.5.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability