Use terser for javascript compression to get ES6 support
This commit is contained in:
parent
fa8818337f
commit
2c1a3d5940
3 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ Rails.application.configure do
|
|||
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
config.assets.js_compressor = Terser.new
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue