aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-09-01 01:15:19 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-09-01 01:15:19 -0500
commitfdf2f519bd948003b851a1eff8a6f157297a46ad (patch)
tree11175395d6b82da71b8005df732b966b98d6c4ee /railties
parent418e321b506645bc0fb69116f01de41546a8cacf (diff)
downloadrails-fdf2f519bd948003b851a1eff8a6f157297a46ad.tar.gz
rails-fdf2f519bd948003b851a1eff8a6f157297a46ad.tar.bz2
rails-fdf2f519bd948003b851a1eff8a6f157297a46ad.zip
Add reference to ExecJS in JavaScript Compression section
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/asset_pipeline.textile4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index 9ff4f0d062..b06abc82cf 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -426,7 +426,7 @@ config.assets.css_compressor = :yui
The +config.assets.compress+ must be set to +true+ to enable CSS compression
-h4. JavaScript
+h4. JavaScript 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.
@@ -440,6 +440,8 @@ config.assets.js_compressor = :uglifier
The +config.assets.compress+ must be set to +true+ to enable JavaScript compression
+NOTE: You will need a "ExecJS":https://github.com/sstephenson/execjs#readme - supported runtime in order to use +uglifier+. If you are using Mac OS X or Windows you have a JavaScript engine in your operating system. Check "ExecJS":https://github.com/sstephenson/execjs#readme documentation to know all supported JavaScript runtimes.
+
h4. Using Your Own Compressor
The compressor config settings for CSS and JavaScript also take any Object. This object must have a +compress+ method that takes a string as the sole argument and it must return a string.