uglify: Restore filename on chunk when loading

Mon, 27 Jul 2009 03:54:38 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 27 Jul 2009 03:54:38 +0100
changeset 36
bbfbc08d568f
parent 35
8843ea9f9e27
child 37
cb8b48b08e1e

uglify: Restore filename on chunk when loading

uglify/squish.uglify.lua file | annotate | diff | comparison | revisions
--- a/uglify/squish.uglify.lua	Mon Jul 27 03:32:28 2009 +0100
+++ b/uglify/squish.uglify.lua	Mon Jul 27 03:54:38 2009 +0100
@@ -81,7 +81,7 @@
 
 	-- Close string/functions	
 	outfile:write("]", string.rep("=", maxequals+1), "]");
-	outfile:write("))()");
+	outfile:write(", '@", outfile_fn,"'))()");
 	outfile:close();
 	os.rename(outfile_fn..".uglified", outfile_fn);
 end

mercurial