bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Configure/Add a "Copyright Notice" in minified css files #643

Closed shanimal closed 11 years ago

shanimal commented 11 years ago

I'd like to add a copyright notice, and optionally append any Licenses from other files I incorporate on a per file basis.

Is this possible I couldn't find it anywhere

bdkjones commented 11 years ago

You use a special comment delimiter in your Sass or less file to tell the compiler to preserve a comment in the compiled CSS. See the docs for your language for more details.

Sent from my iPhone

On Jul 12, 2013, at 23:15, Shannon Thrasher notifications@github.com wrote:

I'd like to add a copyright notice, and optionally append any Licenses from other files I incorporate on a per file basis.

Is this possible I couldn't find it anywhere

— Reply to this email directly or view it on GitHub.

shanimal commented 11 years ago

thanks! i found the reference in the sass documentation as prescribed.

"When the first letter of a comment is !, the comment will be interpolated and always rendered into css output even in compressed output modes. This is useful for _adding Copyright notices_ to your generated CSS." http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments

/! Copyright © 2001 Good Company, All Rights Reserved /