Permalink
Browse files

Fix minified lic header

  • Loading branch information...
1 parent 7d38fc2 commit c598af1b13598d8e26de7502e744fef739c3e8d5 @rwaldron committed Sep 15, 2011
Showing with 11 additions and 6 deletions.
  1. +11 −6 Jakefile.js
View
17 Jakefile.js
@@ -152,10 +152,8 @@ task("minify", [ "hint" ], function( params ) {
print( "\nUglifying..." );
- var ast, out,
- all = "/*! mediagroup.js, Copyright 2011, Rick Waldron, MIT Licensed " +
- " * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#assigning-a-media-controller-declaratively " +
- " */ \n",
+ var ast, out, min,
+ all = "",
files = FILES.src;
@@ -179,10 +177,17 @@ task("minify", [ "hint" ], function( params ) {
// Compress AST
ast = uglify.uglify.ast_mangle( ast );
ast = uglify.uglify.ast_squeeze( ast );
+ ast = uglify.uglify.gen_code( ast );
- // Output regenerated, compressed code
- fs.writeSync( out, uglify.uglify.gen_code( ast ) );
+ min = [
+ "/*! mediagroup.js, Copyright 2011, Rick Waldron, MIT Licensed " +
+ " * http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#assigning-a-media-controller-declaratively " +
+ " */",
+ ast
+ ];
+ // Output regenerated, compressed code
+ fs.writeSync( out, min.join("\n") );
print( "Success!\n" );
});

0 comments on commit c598af1

Please sign in to comment.