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.
- Host: GitHub
- URL: https://github.com/postcss/postcss-fail-on-warn
- Owner: postcss
- License: mit
- Created: 2018-12-09T13:40:57.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T06:00:35.000Z (about 2 years ago)
- Last Synced: 2024-04-14T02:32:50.143Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.55 MB
- Stars: 8
- Watchers: 8
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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/
## 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