PostCSS plugin to remove all of the at-rules
npm install postcss-remove-all-at-rules[PostCSS] plugin to remove all of the at-rules.
!version
!node-current
!npm
!licence
!Snyk Vulnerabilities for npm package
[PostCSS]: https://github.com/postcss/postcss
``css
.foo {
/ Input example /
}
@media print {
.bar {
}
}
@-moz-document {
.baz {
}
}
`
`css`
.foo {
/ Output example /
}
Check you project for existed PostCSS config: postcss.config.js"postcss"
in the project root, section in package.jsonpostcss
or 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