From 5017405fb97625f1c275781f0643e2bf11ec8249 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 18:21:23 +0100 Subject: [PATCH] Replace :terser with Terser.new https://github.com/ahorek/terser-ruby#usage --- lib/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app.rb b/lib/app.rb index bc6c8e78..5f1de60d 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -94,7 +94,7 @@ class App < Sinatra::Application ['/manifest.json', { 'Cache-Control' => 'public, max-age=86400' }] ] - sprockets.js_compressor = :terser + sprockets.js_compressor = Terser.new sprockets.css_compressor = :sass Sprockets::Helpers.configure do |config|