Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

csCSSc - A Client-Side CSS (De) Compressor

DZone's Guide to

csCSSc - A Client-Side CSS (De) Compressor

· Web Dev Zone
Free Resource

Never build auth again! Okta makes it simple to implement authentication, authorization, MFA and more in minutes. Try the free developer API today! 

csCSSc is a client-side CSS (de) compressor  which can compress CSS-code to save bandwidth by removing unnecessary white-space characters from CSS code and also decompress/pretty print CSS-code for readability and maintainability of the CSS-code.  The typed or pasted CSS-code should be valid CSS Level 1 and/or 2 code.


Features

Currently the script performs the following actions on valid CSS-code:
  • Optionally, remove all comments:  All CSS comment-instructions can be removed, eg. everything between `/*' and `*/'.
  • Remove unnecessary white-space: All unnecessary white-space characters are removed. Additionaly, one may choose to remove all newline characters as well, resulting in a single-line file.
  • Remove unnecessary value-types: When a value of a property equals `0' (zero), the compressor will remove type-declarations from the value, like `px' and `em'.


Requirements: None
Demohttp:/ / www. automotivecenter. nl/ diversen/ utility/ csscompressor/
License: GPLv2

Launch your application faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}