postcss-remove-classes
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

postcss-remove-classes

Removes all instances of one or more class selectors from a CSS file.

npm i --save-dev postcss-remove-classes
postcss()
  .use(plugin(['remove'])) // Add as many as you like
  .process('.remove {} .keep {}').css // Gives .keep {}

Examples

a:matches(.remove) /* empty */
a:matches(.remove, .keep) /* a:matches(.keep) */
a:not(.remove) /* a */
a:not(.remove, .keep) /* a:not(.keep) */
a[class="remove"] /* a[class="remove"] --- Will not look in attributes */

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.0292latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.0292
1.0.415
1.0.30
1.0.20
1.0.10
1.0.00
0.0.31
0.0.20
0.0.10

Package Sidebar

Install

npm i postcss-remove-classes@0.0.2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • jacobp100