An open API service indexing awesome lists of open source software.

https://github.com/postcss/postcss-fail-on-warn

PostCSS plugin throws a error on any warning from previous PostCSS plugins.
https://github.com/postcss/postcss-fail-on-warn

Last synced: 3 months ago
JSON representation

PostCSS plugin throws a error on any warning from previous PostCSS plugins.

Awesome Lists containing this project

README

          

# PostCSS Fail On Warn

[PostCSS] plugin throws a error on any warning from previous PostCSS plugins.

[PostCSS]: https://postcss.org/


Sponsored by Evil Martians

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-fail-on-warn
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
plugins: [
require('autoprefixer'),
+ require('postcss-fail-on-warn')
]
}
```

[official docs]: https://github.com/postcss/postcss#usage