diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-07-13 18:10:20 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-07-13 18:10:20 -0700 |
commit | 2e13bd5c08590a748fe5554dc4d82bf3dcd4c171 (patch) | |
tree | 873632585f3c8447434a5486dad91bc1a8a0df35 | |
parent | 7fa9b7ee962958623a249825979017123139c00e (diff) | |
parent | 1720be8a6874d373defec1d91f1de7ff512c8932 (diff) | |
download | rails-2e13bd5c08590a748fe5554dc4d82bf3dcd4c171.tar.gz rails-2e13bd5c08590a748fe5554dc4d82bf3dcd4c171.tar.bz2 rails-2e13bd5c08590a748fe5554dc4d82bf3dcd4c171.zip |
Merge pull request #11428 from evangoer/minor_asset_pipeline_docfix
Update YUI Compressor link; tweak UglifyJS
-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. |