Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix minified lic header

  • Loading branch information...
commit c598af1b13598d8e26de7502e744fef739c3e8d5 1 parent 7d38fc2
Rick Waldron authored September 15, 2011

Showing 1 changed file with 11 additions and 6 deletions. Show diff stats Hide diff stats

  1. 17  Jakefile.js
17  Jakefile.js
@@ -152,10 +152,8 @@ task("minify", [ "hint" ], function( params ) {
152 152
 
153 153
 	print( "\nUglifying..." );
154 154
 
155  
-	var ast, out,
156  
-	all = "/*! mediagroup.js, Copyright 2011, Rick Waldron, MIT Licensed " +
157  
-	" * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#assigning-a-media-controller-declaratively " +
158  
-	" */ \n",
  155
+	var ast, out, min,
  156
+	all = "",
159 157
 	files = FILES.src;
160 158
 
161 159
 
@@ -179,10 +177,17 @@ task("minify", [ "hint" ], function( params ) {
179 177
 	// Compress AST
180 178
 	ast = uglify.uglify.ast_mangle( ast );
181 179
 	ast = uglify.uglify.ast_squeeze( ast );
  180
+	ast = uglify.uglify.gen_code( ast );
182 181
 
183  
-	// Output regenerated, compressed code
184  
-	fs.writeSync( out, uglify.uglify.gen_code( ast ) );
  182
+	min = [
  183
+		"/*! mediagroup.js, Copyright 2011, Rick Waldron, MIT Licensed " +
  184
+		" * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#assigning-a-media-controller-declaratively " +
  185
+		" */",
  186
+		ast
  187
+	];
185 188
 
  189
+	// Output regenerated, compressed code
  190
+	fs.writeSync( out, min.join("\n") );
186 191
 
187 192
 	print( "Success!\n" );
188 193
 });

0 notes on commit c598af1

Please sign in to comment.
Something went wrong with that request. Please try again.