This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > September 2005 > Tool for stripping space in CSS ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Tool for stripping space in CSS ?
dingbat@codesmiths.com

2005-09-21, 7:34 pm

Anyone have a recommendation for a tool (Perl script would be ideal) to
do the following:

- Take a CSS file and merge any @import statements.

- Whitespace compress and comment-strip the CSS

- Be reliable! i.e. it should take substantial commercial-scale CSS
files and process them reliably, without introducing further sources of
error.

Ideally it would also do the following:

- Have some means (embedded flag or whatever) to leave a single
version-control comment at the head.

- Either understand, or be controllable by embedded flags so as to not
disturb things like the Tantek Celik hack.


I suspect I'm going to have to write it, but it would be nice to find a
pointer to a pre-existing one. Thanks for any suggestions.

Roedy Green

2005-09-21, 7:34 pm

On 21 Sep 2005 08:07:37 -0700, dingbat@codesmiths.com wrote or quoted
:

>
> - Take a CSS file and merge any @import statements.
>
> - Whitespace compress and comment-strip the CSS


I have written one for HTML. For a fee I could write you one for CSS.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews