mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-02 08:31:00 +03:00
Remove function wrapper from tracker building when using UglifyJS
This commit is contained in:
parent
a3b3f55d47
commit
6d612016ad
8
build.py
8
build.py
@ -27,9 +27,13 @@ def build_tracker():
|
||||
input_pattern = "src/tracker/*.js"
|
||||
|
||||
with open(output_file, "w") as out:
|
||||
out.write("(function(){\n")
|
||||
if not USE_UGLIFYJS:
|
||||
out.write("(function(){\n")
|
||||
|
||||
combine_files(input_pattern, out)
|
||||
out.write("})()")
|
||||
|
||||
if not USE_UGLIFYJS:
|
||||
out.write("})()")
|
||||
|
||||
if USE_UGLIFYJS:
|
||||
os.system(EXEC_UGLIFYJS.format(output_file, output_file_tmp))
|
||||
|
Loading…
x
Reference in New Issue
Block a user