Update Google Closure compiler version, run minify by default on -final HTML5 builds

This commit is contained in:
Joshua Granick
2015-01-22 11:02:03 -08:00
parent 1dcacbc69c
commit 25286bcdc4
2 changed files with 10 additions and 10 deletions

View File

@@ -50,17 +50,17 @@ class HTML5Platform extends PlatformTarget {
var hxml = targetDirectory + "/haxe/" + type + ".hxml";
ProcessHelper.runCommand ("", "haxe", [ hxml ] );
}
if (project.targetFlags.exists ("webgl")) {
if (project.targetFlags.exists ("webgl")) {
FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain.js", outputFile);
}
FileHelper.copyFile (targetDirectory + "/obj/ApplicationMain.js", outputFile);
}
if (project.targetFlags.exists ("minify")) {
HTML5Helper.minify (project, targetDirectory + "/bin/" + project.app.file + ".js");
if (project.targetFlags.exists ("minify") || type == "final") {
HTML5Helper.minify (project, targetDirectory + "/bin/" + project.app.file + ".js");
}
}