postcss-messages
v0.2.2
Published
PostCSS plugin to display warning messages right in your browser
Downloads
17,195
Maintainers
Readme
PostCSS Messages
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
.
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