Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→email-comb→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Keep classes inside backend template markers
  • Keep HTML comments containing a given string
  • Match decoded HTML class values
  • CSS escapes identify the same class names as their decoded HTML values.
  • Keep CSS comments
  • Keep HTML comments
  • Keep id's referenced by for attributes
  • Minifies and uglifies
  • Preserve CSS comment boundaries
  • Unchanged short names keep the escaping required by their output context.
  • Report progress within a custom range
  • Remove media queries left empty
  • Returns all extracted and deleted classes and id's
  • Works even if <style> is within <body> and there's no <head>
  • Uglify class and ID selectors with the convenience API
  • Whitelist a selector from removal
  • Whitelist using wildcards
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Keep classes inside backend template markersKeep classes inside backend template markers

↑ back to top

Permalink to Keep HTML comments containing a given stringKeep HTML comments containing a given string

↑ back to top

Permalink to Match decoded HTML class valuesMatch decoded HTML class values

↑ back to top

Permalink to CSS escapes identify the same class names as their decoded HTML values.CSS escapes identify the same class names as their decoded HTML values.

↑ back to top

Permalink to Keep CSS commentsKeep CSS comments

↑ back to top

Permalink to Keep HTML commentsKeep HTML comments

↑ back to top

Permalink to Keep id's referenced by for attributesKeep id's referenced by for attributes

↑ back to top

Permalink to Minifies and uglifiesMinifies and uglifies

↑ back to top

Permalink to Preserve CSS comment boundariesPreserve CSS comment boundaries

↑ back to top

Permalink to Unchanged short names keep the escaping required by their output context.Unchanged short names keep the escaping required by their output context.

↑ back to top

Permalink to Report progress within a custom rangeReport progress within a custom range

↑ back to top

Permalink to Remove media queries left emptyRemove media queries left empty

↑ back to top

Permalink to Returns all extracted and deleted classes and id'sReturns all extracted and deleted classes and id's

↑ back to top

Permalink to Works even if is within and there's noWorks even if <style> is within <body> and there's no <head>

↑ back to top

Permalink to Uglify class and ID selectors with the convenience APIUglify class and ID selectors with the convenience API

↑ back to top

Permalink to Whitelist a selector from removalWhitelist a selector from removal

↑ back to top

Permalink to Whitelist using wildcardsWhitelist using wildcards

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab