mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
f5a7d2e266
commit
fa98e8caf1
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue