Skip to content

Commit

Permalink
Merge pull request #26220 from prathamesh-sonpatki/fix-compress
Browse files Browse the repository at this point in the history
Asset pipeline: Remove documentation about outdated `config.assets.compress` option
  • Loading branch information
rafaelfranca committed Aug 22, 2016
1 parent 5bc494b commit 22d14d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions guides/source/asset_pipeline.md
Expand Up @@ -434,11 +434,11 @@ Sprockets uses manifest files to determine which assets to include and serve.
These manifest files contain _directives_ - instructions that tell Sprockets
which files to require in order to build a single CSS or JavaScript file. With
these directives, Sprockets loads the files specified, processes them if
necessary, concatenates them into one single file and then compresses them (if
`Rails.application.config.assets.compress` is true). By serving one file rather
than many, the load time of pages can be greatly reduced because the browser
makes fewer requests. Compression also reduces file size, enabling the
browser to download them faster.
necessary, concatenates them into one single file and then compresses them
(based on value of `Rails.application.config.assets.js_compressor`). By serving
one file rather than many, the load time of pages can be greatly reduced because
the browser makes fewer requests. Compression also reduces file size, enabling
the browser to download them faster.


For example, a new Rails 4 application includes a default
Expand Down
2 changes: 0 additions & 2 deletions guides/source/configuring.md
Expand Up @@ -139,8 +139,6 @@ pipeline is enabled. It is set to true by default.

* `config.assets.raise_runtime_errors` Set this flag to `true` to enable additional runtime error checking. Recommended in `config/environments/development.rb` to minimize unexpected behavior when deploying to `production`.

* `config.assets.compress` a flag that enables the compression of compiled assets. It is explicitly set to true in `config/environments/production.rb`.

* `config.assets.css_compressor` defines the CSS compressor to use. It is set by default by `sass-rails`. The unique alternative value at the moment is `:yui`, which uses the `yui-compressor` gem.

* `config.assets.js_compressor` defines the JavaScript compressor to use. Possible values are `:closure`, `:uglifier` and `:yui` which require the use of the `closure-compiler`, `uglifier` or `yui-compressor` gems respectively.
Expand Down

0 comments on commit 22d14d7

Please sign in to comment.