postcss-messages

0.2.2 • Public • Published

PostCSS Messages Build Status

PostCSS plugin to display 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-messages – 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-messages')
])

Options

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

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

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

styles ({Object}, default: opininated styles)

You can override default styles applied to the selector:

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

See PostCSS docs for examples for your environment.

License

The MIT License

Dependents (1)

Package Sidebar

Install

npm i postcss-messages

Weekly Downloads

2,602

Version

0.2.2

License

MIT

Last publish

Collaborators

  • gazay