mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 18:48:19 -05:00
Fix for bug #983 (Packed jQuery doesn't have a license at the top of the file.)
This commit is contained in:
@@ -12,7 +12,8 @@ var base62 = true;
|
||||
var shrink = true;
|
||||
|
||||
var script = readFile(inFile);
|
||||
var header = script.match(/\/\*(.|\n)*?\*\//)[0];
|
||||
var packer = new Packer;
|
||||
var packedScript = packer.pack(script, base62, shrink);
|
||||
|
||||
writeFile(outFile, packedScript);
|
||||
writeFile(outFile, header + "\n" + packedScript);
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* prevent execution of jQuery if included more than once */
|
||||
// prevent execution of jQuery if included more than once
|
||||
if(typeof window.jQuery == "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user