Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPirate Praveen <praveen@debian.org>2021-07-07 18:24:08 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2021-08-16 01:21:17 +0300
commit20a3abd86443365b2b4f8f63b1a1ab32389a29b2 (patch)
tree83d13f6d7928e209c328d0b612f0deaf81332767 /lib
parent07a49de7e1aa3c37f17128bc2cb4aa180a3708ca (diff)
Switch to terser gem from uglifier for JS compression
closes #8268
Diffstat (limited to 'lib')
-rw-r--r--lib/bookmarklet_renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bookmarklet_renderer.rb b/lib/bookmarklet_renderer.rb
index 75b2b51f1..a8e998a73 100644
--- a/lib/bookmarklet_renderer.rb
+++ b/lib/bookmarklet_renderer.rb
@@ -30,7 +30,7 @@ class BookmarkletRenderer
def compile
src = File.read(source)
- @body = Uglifier.compile(src)
+ @body = Terser.compile(src)
FileUtils.mkdir_p cached_path.dirname
File.open(cached_path, "w") {|f| f.write(@body) }
end