mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
pass --jitless to node when minifying js code to avoid random crashes
idea from volker@
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Index: ui/webui/resources/tools/minify_js.py
|
||||
--- ui/webui/resources/tools/minify_js.py.orig
|
||||
+++ ui/webui/resources/tools/minify_js.py
|
||||
@@ -32,7 +32,7 @@ def main(argv):
|
||||
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
|
||||
# does not allow compressing multiple files at once. This is done to avoid
|
||||
# launching NodeJS once for every input file.
|
||||
- node.RunNode([
|
||||
+ node.RunNode(['--jitless',
|
||||
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
|
||||
'--out_folder', out_path
|
||||
] + args.in_files)
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: ui/webui/resources/tools/minify_js.py
|
||||
--- ui/webui/resources/tools/minify_js.py.orig
|
||||
+++ ui/webui/resources/tools/minify_js.py
|
||||
@@ -32,7 +32,7 @@ def main(argv):
|
||||
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
|
||||
# does not allow compressing multiple files at once. This is done to avoid
|
||||
# launching NodeJS once for every input file.
|
||||
- node.RunNode([
|
||||
+ node.RunNode(['--jitless',
|
||||
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
|
||||
'--out_folder', out_path
|
||||
] + args.in_files)
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: ui/webui/resources/tools/minify_js.py
|
||||
--- ui/webui/resources/tools/minify_js.py.orig
|
||||
+++ ui/webui/resources/tools/minify_js.py
|
||||
@@ -32,7 +32,7 @@ def main(argv):
|
||||
# Spawn a NodeJS script to use the programmatic Terser API, since the CLI API
|
||||
# does not allow compressing multiple files at once. This is done to avoid
|
||||
# launching NodeJS once for every input file.
|
||||
- node.RunNode([
|
||||
+ node.RunNode(['--jitless',
|
||||
os.path.join(_HERE_PATH, 'minify_js.js'), '--in_folder', in_path,
|
||||
'--out_folder', out_path
|
||||
] + args.in_files)
|
||||
Reference in New Issue
Block a user