Ver Fonte

Uglifier::Error: Unexpected token: punc ()).

To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
Simon Legner há 1 ano atrás
pai
commit
a06462f6e3
1 ficheiros alterados com 1 adições e 1 exclusões
  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 = Uglifier.new output: { beautify: true, indent_level: 0 }
+    sprockets.js_compressor = Uglifier.new output: { :harmony => true, beautify: true, indent_level: 0 }
     sprockets.css_compressor = :sass
 
     Sprockets::Helpers.configure do |config|