postcss/postcss-browser-reporter

Name: postcss-browser-reporter

Owner: PostCSS

Description: Plugin to display warning messages right in your browser

Created: 2015-03-29 19:49:38.0

Updated: 2018-05-23 12:07:30.0

Pushed: 2017-06-27 12:31:10.0

Homepage:

Size: 194

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

css([
quire('other-plugin'),
quire('postcss-browser-reporter')

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

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

messages = require('postcss-browser-reporter')
css([
ssages({
selector: 'body:before'


styles ({Object}, default: opinionated styles)

You can override default styles applied to the selector:

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


See PostCSS docs for examples for your environment.

License

The MIT License


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.