https://github.com/songsterr/postcss-remove-all-at-rules
PostCSS plugin to remove all of the at-rules
https://github.com/songsterr/postcss-remove-all-at-rules
at-rule cleanup css postcss postcss-plugin
Last synced: 4 months ago
JSON representation
PostCSS plugin to remove all of the at-rules
- Host: GitHub
- URL: https://github.com/songsterr/postcss-remove-all-at-rules
- Owner: songsterr
- License: mit
- Created: 2019-12-03T09:36:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T10:56:00.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T22:43:46.449Z (5 months ago)
- Topics: at-rule, cleanup, css, postcss, postcss-plugin
- Language: JavaScript
- Size: 997 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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