Commit 5e964a4a authored by John Resig's avatar John Resig

Fix for bug #983 (Packed jQuery doesn't have a license at the top of the file.)

parent 9b5363b9
......@@ -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);
/* prevent execution of jQuery if included more than once */
// prevent execution of jQuery if included more than once
if(typeof window.jQuery == "undefined") {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment