1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

Fix patch

This commit is contained in:
ericgaspar 2022-04-17 10:43:44 +02:00
parent 2409f513e6
commit ba44f5e409
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 5 deletions

View file

@ -2,9 +2,9 @@ diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 4a02d5f1b1..7b47f21658 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -94,6 +94,7 @@ def compress_ruby(from, to)
@@ -153,6 +153,7 @@
data = File.read("#{assets_path}/#{from}")
uglified, map = Uglifier.new(comments: :none,
+ harmony: true,
source_map: {

View file

@ -2,9 +2,9 @@ diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 7b47f21658..ea6d0da2c4 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -116,9 +116,21 @@ def gzip(path)
@@ -174,9 +174,21 @@
end
# different brotli versions use different parameters
-def brotli_command(path, max_compress)
- compression_quality = max_compress ? "11" : "6"
@ -25,5 +25,5 @@ index 7b47f21658..ea6d0da2c4 100644
+ # not sure what to do here, not expecting this
+ raise "cannot determine brotli version"
end
def brotli(path, max_compress)