You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.
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.
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">
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.
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:
/*
*
/*!
/body{backg..h:0 1px 1px}/!
/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">
/*
*/
</header>
The text was updated successfully, but these errors were encountered: