From fa98e8caf17c7cf94c50a16412c8b28693237329 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Tue, 9 Nov 2021 15:51:05 -0600 Subject: [PATCH] Update the assets guide to remove uglifier Fixes #43610 Uglifier only supports ES5 and the author recommends using Terser for ES6 support. --- guides/source/asset_pipeline.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index e2d88c2b7b..06ba8f22e3 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -46,7 +46,7 @@ in `production.rb` - `config.assets.css_compressor` for your CSS and ```ruby config.assets.css_compressor = :yui -config.assets.js_compressor = :uglifier +config.assets.js_compressor = :terser ``` NOTE: The `sassc-rails` gem is automatically used for CSS compression if included @@ -1042,8 +1042,8 @@ config.assets.css_compressor = :sass ### JavaScript Compression -Possible options for JavaScript compression are `:terser`, `:closure`, `:uglifier` and -`:yui`. These require the use of the `terser`, `closure-compiler`, `uglifier` or +Possible options for JavaScript compression are `:terser`, `:closure` and +`:yui`. These require the use of the `terser`, `closure-compiler` or `yui-compressor` gems, respectively. Take the `terser` gem, for example.