Browse Source

Replace :terser with Terser.new

https://github.com/ahorek/terser-ruby#usage
Simon Legner 1 year ago
parent
commit
5017405fb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/app.rb

+ 1 - 1
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|