postcss-remove-all-at-rules

0.4.2 • Public • Published

PostCSS Remove All At-Rules

PostCSS plugin to remove all of the at-rules.

version node-current npm licence Snyk Vulnerabilities for npm package

.foo {
    /* Input example */
}

@media print {
  .bar {
  }
}

@-moz-document {
  .baz {
  }
}
.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:

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.

Package Sidebar

Install

npm i postcss-remove-all-at-rules

Weekly Downloads

20

Version

0.4.2

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • tamtamchik
  • eploko
  • krasnoperov