Skip to content

Commit a06462f

Browse files
committed
Uglifier::Error: Unexpected token: punc ()).
To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).
1 parent 92b0098 commit a06462f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class App < Sinatra::Application
9494
['/manifest.json', { 'Cache-Control' => 'public, max-age=86400' }]
9595
]
9696

97-
sprockets.js_compressor = Uglifier.new output: { beautify: true, indent_level: 0 }
97+
sprockets.js_compressor = Uglifier.new output: { :harmony => true, beautify: true, indent_level: 0 }
9898
sprockets.css_compressor = :sass
9999

100100
Sprockets::Helpers.configure do |config|

0 commit comments

Comments
 (0)