Process JS using template, add support for unique statics in repeat lime.embed calls

This commit is contained in:
Joshua Granick
2019-02-12 13:14:40 -08:00
parent d9dbea7f6b
commit 3e9f875eaf
2 changed files with 23 additions and 0 deletions

View File

@@ -79,6 +79,14 @@ class HTML5Platform extends PlatformTarget {
}
if (FileSystem.exists (outputFile)) {
var context = project.templateContext;
context.SOURCE_FILE = File.getContent (outputFile);
System.copyFileTemplate (project.templatePaths, "html5/output.js", outputFile, context);
}
if (project.targetFlags.exists ("minify") || type == "final") {
HTML5Helper.minify (project, targetDirectory + "/bin/" + project.app.file + ".js");