h5bp/ant-build-script — Issue #35: include filename/global header to publish output
Author: thezoggy
Created: 2012-03-09 00:28:45+00:00
State: open

if you go to cisco.com and look at their .css you can tell they use a buildscript.
I like their output of showing the filename source and header above the minfied css.

cisco.com example snippet:
/*
* homepage.mb.1.n.min.css
* $Revision: 1.3 $
*
* homepage.mb.1.n.min.css -- aggregated and minified
* DO NOT EDIT THIS FILE -- edit the individual files and rebuild
*
* Bundled homepage css files (minified)
*
* (c) 1992-2011 Cisco Systems, Inc. All rights reserved.
* Terms and Conditions: http://cisco.com/en/US/swassets/sw293/sitewide_important_notices.html
*
*
* MANIFEST:
* /web/fw/c/masterbrand_frag/_masterbrand.css 1.13
* /web/fw/c/masterbrand_frag/_toolbar.css 1.7
* /web/fw/c/masterbrand_frag/_megamenu.css 1.9
*/

/*!
* BEGIN /web/fw/c/masterbrand_frag/_masterbrand.css
*/body{backg..h:0 1px 1px}/*!
* BEGIN /web/fw/c/masterbrand_frag/_toolbar.css
*/body{backg..h:0 1px 1px}/*!

and so on. is there a way to modify the current built script to do something similar?

I see that you can use the

inside the concat function, I was able to spit out a global header but I can't make it do the rest of the comments.

right after this line:

add this:

/*
* DO NOT EDIT THIS FILE -- edit the individual files and rebuild
*/