Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T10:56:00.000Z (over 1 year ago)
- Last Synced: 2024-10-13T23:06:12.509Z (3 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.
![version](https://img.shields.io/npm/v/postcss-remove-all-at-rules?style=flat-square)
![node-current](https://img.shields.io/node/v/postcss-remove-all-at-rules?style=flat-square)
![npm](https://img.shields.io/npm/dt/postcss-remove-all-at-rules?style=flat-square)
![licence](https://img.shields.io/npm/l/postcss-remove-all-at-rules?style=flat-square)
![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/postcss-remove-all-at-rules?style=flat-square)[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