Skip to content

Commit 5cb17aa

Browse files
committed
Keep header comment on minify
Some minifier keep header comment over its format. 1. YUI Compressor It keeps the header comments beggining with `/*!` * http://yui.github.io/yuicompressor/css.html#special-comments 2. Closure compiler It keeps the header comments containing `@license` or `@preserve` * https://developers.google.com/closure/compiler/docs/js-for-compiler#tag-license I think header comment is very important because it includes its own license.
1 parent 9c990a0 commit 5cb17aa

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

github.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
// Github.js 0.9.0
2-
// (c) 2013 Michael Aufreiter, Development Seed
3-
// Github.js is freely distributable under the MIT license.
4-
// For all details and documentation:
5-
// http://substance.io/michael/github
1+
/*!
2+
* @overview Github.js 0.9.0
3+
*
4+
* @copyright (c) 2013 Michael Aufreiter, Development Seed
5+
* Github.js is freely distributable.
6+
*
7+
* @license Licensed under MIT license
8+
*
9+
* For all details and documentation:
10+
* http://substance.io/michael/github
11+
*/
612

713
(function() {
814

0 commit comments

Comments
 (0)