mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-06-04 01:21:01 +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"
|
input_pattern = "src/tracker/*.js"
|
||||||
|
|
||||||
with open(output_file, "w") as out:
|
with open(output_file, "w") as out:
|
||||||
out.write("(function(){\n")
|
if not USE_UGLIFYJS:
|
||||||
|
out.write("(function(){\n")
|
||||||
|
|
||||||
combine_files(input_pattern, out)
|
combine_files(input_pattern, out)
|
||||||
out.write("})()")
|
|
||||||
|
if not USE_UGLIFYJS:
|
||||||
|
out.write("})()")
|
||||||
|
|
||||||
if USE_UGLIFYJS:
|
if USE_UGLIFYJS:
|
||||||
os.system(EXEC_UGLIFYJS.format(output_file, output_file_tmp))
|
os.system(EXEC_UGLIFYJS.format(output_file, output_file_tmp))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user