Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recomend terser-ruby instead of uglifier #713

Merged
merged 1 commit into from Sep 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -606,19 +606,19 @@ Several JavaScript and CSS minifiers are available through shorthand.
In Rails you will specify them with:

```ruby
config.assets.js_compressor = :uglify
config.assets.js_compressor = :terser
config.assets.css_compressor = :scss
```

If you're not using Rails, configure this directly on the "environment".

``` ruby
environment.js_compressor = :uglify
environment.js_compressor = :terser
environment.css_compressor = :scss
```

If you are using Sprockets directly with a Rack app, don't forget to add
the `uglifier` and `sass` gems to your Gemfile when using above options.
the `ruby-terser` and `sass` gems to your Gemfile when using above options.

### Gzip

Expand Down