Skip to content

Commit 4183f5b

Browse files
committed
Enable ES6 use with uglifier
1 parent 6611cd2 commit 4183f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2424

2525
# Compress JavaScripts and CSS.
26-
config.assets.js_compressor = :uglifier
26+
config.assets.js_compressor = Uglifier.new(harmony: true)
2727
# config.assets.css_compressor = :sass
2828

2929
# Do not fallback to assets pipeline if a precompiled asset is missed.

0 commit comments

Comments
 (0)