diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-12-11 00:03:24 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-12-11 00:03:24 +0100 |
commit | 1c2cb7d740a7418145639be2c97242a5aea9d441 (patch) | |
tree | 6203979779012b2e29401f8b6d7f6fd34a251454 | |
parent | cd7fbcbba82c08aeaac791e4d8ff3f789e628b3b (diff) | |
download | rails-1c2cb7d740a7418145639be2c97242a5aea9d441.tar.gz rails-1c2cb7d740a7418145639be2c97242a5aea9d441.tar.bz2 rails-1c2cb7d740a7418145639be2c97242a5aea9d441.zip |
Clarify the default assets.precompile matcher behavior
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 8ff1035a1c..d03d7f4a7d 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -369,10 +369,10 @@ It is important that this folder is shared between deployments so that remotely NOTE. If you are precompiling your assets locally, you can use +bundle install --without assets+ on the server to avoid installing the assets gems (the gems in the assets group in the Gemfile). -The default matcher for compiling files includes +application.js+, +application.css+ and all files that do not end in +js+ or +css+: +The default matcher for compiling files includes +application.js+, +application.css+ and all non-JS/CSS files (ie. +.coffee+ and +.scss+ files are *not* automatically included as they compile to JS/CSS): <ruby> -[ /\w<plus>\.(?!js|css).<plus>/, /application.(css|js)$/ ] +[ Proc.new{ |path| !File.extname(path).in?(['.js', '.css']) }, /application.(css|js)$/ ] </ruby> If you have other manifests or individual stylesheets and JavaScript files to include, you can add them to the +precompile+ array: |