Re: [CSS21] enhancement: comment format for surviving file being minified

I found implementations favoring the same effect as more or less proposed in this thread, the bang immediately after the opening tag:

YUI preserves comments beginning with "/*!" (without quotation marks). <https://github.com/yui/yuicompressor/blob/master/README.md>, as accessed Aug. 15, 2015.

rCSSmin 1.0.5: "Comments starting with an exclamation mark (!) can be kept optionally." <http://opensource.perlig.de/rcssmin/>, as accessed Aug. 15, 2015.

W3 Total Cache (W3TC): Comments including certain strings (at least "google_ad_" or "RSPEAK_" (without quotation marks)) will be preserved. <http://code.tutsplus.com/articles/configuring-w3-total-cache-advanced-minification-settings--wp-31043>, as accessed Aug. 15, 2015.

CSS::Minifier (CSS-Minifier-0.01), ver. 0.01 (thus, by convention, beta) can create or preserve only a copyright comment. <http://search.cpan.org/~pmichaux/CSS-Minifier-0.01/lib/CSS/Minifier.pm>, as accessed Aug. 16, 2015.

-- 
Nick

Received on Thursday, 20 August 2015 11:29:20 UTC