Skip to content

Preserve comments in YUI compressor

The YUI compressor will remove comments from your minified files by default. However, you can intercept this behavior and preserve the comment (for example for a copyright note) by adding an ! exclamation mark after starting your comment with /*:

(source)

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.