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/main-1-use-latest_uglify-js.patch

27 lines
729 B
Diff
Raw Normal View History

2024-07-26 14:21:38 +02:00
From 0d5cfdaf5d1b65cff5b2c1bde026dbb9b3351d4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= <felix@piedallu.me>
Date: Fri, 26 Jul 2024 14:15:56 +0200
Subject: [PATCH 1/3] Use latest uglify-js
---
lib/tasks/assets.rake | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
2024-07-26 14:21:38 +02:00
index 96082977..ce59ce85 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
2024-07-26 14:21:38 +02:00
@@ -181,6 +181,9 @@ def compress_ruby(from, to)
uglified, map =
Uglifier.new(
comments: :none,
+ harmony: true,
+ mangle: false,
+ compress: false,
source_map: {
filename: File.basename(from),
output_filename: File.basename(to),
--
2.45.2