postcss-remove-all-at-rules
Version:
PostCSS plugin to remove all of the at-rules
57 lines (42 loc) • 1.27 kB
Markdown
# PostCSS Remove All At-Rules
[PostCSS] plugin to remove all of the at-rules.





[PostCSS]: https://github.com/postcss/postcss
```css
.foo {
/* Input example */
}
@media print {
.bar {
}
}
@-moz-document {
.baz {
}
}
```
```css
.foo {
/* Output example */
}
```
## Usage
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 already use PostCSS, add the plugin to plugins list:
```diff
module.exports = {
plugins: [
+ require('postcss-remove-all-at-rules'),
require('autoprefixer')
]
}
```
If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.
[official docs]: https://github.com/postcss/postcss#usage