Skip to content
This repository
Browse code

Add reference to ExecJS in JavaScript Compression section

  • Loading branch information...
commit fdf2f519bd948003b851a1eff8a6f157297a46ad 1 parent 418e321
Guillermo Iguaran guilleiguaran authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 railties/guides/source/asset_pipeline.textile
4 railties/guides/source/asset_pipeline.textile
Source Rendered
@@ -426,7 +426,7 @@ config.assets.css_compressor = :yui
426 426
427 427 The +config.assets.compress+ must be set to +true+ to enable CSS compression
428 428
429   -h4. JavaScript
  429 +h4. JavaScript Compression
430 430
431 431 Possible options for JavaScript compression are +:closure+, +:uglifier+ and +:yui+. These require the use of the +closure-compiler+, +uglifier+ or +yui-compressor+ gems respectively.
432 432
@@ -440,6 +440,8 @@ config.assets.js_compressor = :uglifier
440 440
441 441 The +config.assets.compress+ must be set to +true+ to enable JavaScript compression
442 442
  443 +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.
  444 +
443 445 h4. Using Your Own Compressor
444 446
445 447 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.

0 comments on commit fdf2f51

Please sign in to comment.
Something went wrong with that request. Please try again.