diff options
author | Evan Goer <evan@goer.org> | 2013-07-13 17:38:16 -0700 |
---|---|---|
committer | Evan Goer <evan@goer.org> | 2013-07-13 18:01:21 -0700 |
commit | 1720be8a6874d373defec1d91f1de7ff512c8932 (patch) | |
tree | 873632585f3c8447434a5486dad91bc1a8a0df35 /guides | |
parent | 7fa9b7ee962958623a249825979017123139c00e (diff) | |
download | rails-1720be8a6874d373defec1d91f1de7ff512c8932.tar.gz rails-1720be8a6874d373defec1d91f1de7ff512c8932.tar.bz2 rails-1720be8a6874d373defec1d91f1de7ff512c8932.zip |
[ci-skip] Update link, tweak UglifyJS
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/asset_pipeline.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index a6e3d3b0ac..6c4d7fe255 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -606,7 +606,7 @@ Customizing the Pipeline ### CSS Compression -There is currently one option for compressing CSS, YUI. The [YUI CSS compressor](http://developer.yahoo.com/yui/compressor/css.html) provides minification. +There is currently one option for compressing CSS, YUI. The [YUI CSS compressor](http://yui.github.io/yuicompressor/css.html) provides minification. The following line enables YUI compression, and requires the `yui-compressor` gem. @@ -620,7 +620,7 @@ The `config.assets.compress` must be set to `true` to enable CSS compression. Possible options for JavaScript compression are `:closure`, `:uglifier` and `:yui`. These require the use of the `closure-compiler`, `uglifier` or `yui-compressor` gems, respectively. -The default Gemfile includes [uglifier](https://github.com/lautis/uglifier). This gem wraps [UglifierJS](https://github.com/mishoo/UglifyJS) (written for NodeJS) in Ruby. It compresses your code by removing white space. It also includes other optimizations such as changing your `if` and `else` statements to ternary operators where possible. +The default Gemfile includes [uglifier](https://github.com/lautis/uglifier). This gem wraps [UglifyJS](https://github.com/mishoo/UglifyJS) (written for NodeJS) in Ruby. It compresses your code by removing white space and comments, shortening local variable names, and performing other micro-optimizations such as changing `if` and `else` statements to ternary operators where possible. The following line invokes `uglifier` for JavaScript compression. |