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.

Michael Evangelista

2005-09-22, 4:23 am

TopStyle pro has some features like this in the 'style sweeper' menu...
worth checking out the free trial to see if it does exactly what you are
looking for.

--


--
Michael Evangelista
Evangelista Consulting, inc.
www.evangelistadesign.com
Custom Small Business Website Solutions


<dingbat@codesmiths.com> wrote in message
news:1127315360.073939.122390@g49g2000cwa.googlegroups.com...
> 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.
>



Sponsored Links


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