1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/sources/patches/app-1-use-latest_uglify-js.patch

13 lines
520 B
Diff
Raw Normal View History

diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
2019-06-25 21:22:10 +02:00
index 4a02d5f1b1..7b47f21658 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
2019-02-10 12:13:29 +01:00
@@ -94,6 +94,7 @@ def compress_ruby(from, to)
data = File.read("#{assets_path}/#{from}")
uglified, map = Uglifier.new(comments: :none,
+ harmony: true,
source_map: {
filename: File.basename(from),
2019-02-10 12:13:29 +01:00
output_filename: File.basename(to)