Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

include filename/global header to publish output #35

Closed
thezoggy opened this issue Mar 9, 2012 · 1 comment
Closed

include filename/global header to publish output #35

thezoggy opened this issue Mar 9, 2012 · 1 comment

Comments

@thezoggy
Copy link

thezoggy commented Mar 9, 2012

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

/*!

  • 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 <header> 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:
<concat destfile="./${dir.intermediate}/${dir.js}/scripts-concat.min.js" overwrite="no">

add this:
<header filtering="no" trimleading="no">
/*

  • DO NOT EDIT THIS FILE -- edit the individual files and rebuild
    */
    </header>
@roblarsen
Copy link
Member

For a development/testing environment, I would just add the comments to the individual CSS files. There might be a way to do it with Ant, but <header> is as close as I was able to come in my searching around. Of course, most of my time with ant is spent trying to get rid of text and not add it, so there's that too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants