Update the assets guide to remove uglifier

Fixes #43610

Uglifier only supports ES5 and the author recommends using Terser for ES6 support.
This commit is contained in:
Justin Coyne 2021-11-09 15:51:05 -06:00
parent f5a7d2e266
commit fa98e8caf1
1 changed files with 3 additions and 3 deletions

View File

@ -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.