Tool for stripping space in CSS ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dingbat@codesmiths.com

    Tool for stripping space in CSS ?

    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

    #2
    Re: Tool for stripping space in CSS ?

    On 21 Sep 2005 08:07:37 -0700, dingbat@codesmi ths.com wrote or quoted
    :
    [color=blue]
    >
    > - Take a CSS file and merge any @import statements.
    >
    > - Whitespace compress and comment-strip the CSS[/color]

    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.

    Comment

    Working...