This repository was archived by the owner on Dec 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Messages can't be disabled in CLI #192
Comments
One workaround is to make a plugin that will remove some messages you don't want to see // cssnext config
{
plugins: [
function(css, result) {
for(var i=0; i < result.messages.length; i++) {
if (result.messages[i].text == "THE WARNING YOU HATE") {
result.messages = result.messages.slice(0,i).concat(result.messages.slice(i+1))
}
}
]
} You can use a regex using |
Can I do that when using |
I think CLI support a config file. Try module.exports = {
// cssnext config here
} |
It works perfect thanks! For the record I used with module.exports = {
messages: false
} |
postcss-cssnext do not handle messages anymore (cssnext is now postcss-cssnext. cssnext is deprecated.) See postcss-cssnext migration guide http://cssnext.io/postcss/ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice to be able to disable
messages
when usingcssnext
CLI. Also you might want to consider having thebrowser
messages disabled by default as this is pretty intrusive and can't be hidden (I'm using a CSS DSL that generates some invalid CSS and always trigger the reporter).The text was updated successfully, but these errors were encountered: