Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6600427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:37:16+00:00 2026-05-25T18:37:16+00:00

In Rails 3.1 rake assets:precompile precompiles all separate .css and .js that are in

  • 0

In Rails 3.1 “rake assets:precompile” precompiles all separate .css and .js that are in vendor/assets/.. folders. For example, it creates separate precompiled files for jquery, jqueryui libraries and all other files from “vendor” folder.

My web site only references application.css and application.js. Why does it precompile every single vendor asset as a separate file? I am not using those files directly. Is there a way to remove those vendor files from precompilation list?

My concern is that it takes extra time and disk space to precompile those files that I will never use in production.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:37:16+00:00Added an answer on May 25, 2026 at 6:37 pm

    This is actually a bug in 3.1.

    The regex that is used to capture assets to precompile was a little to broad and was including files that it wasn’t supposed to.

    This is fixed in in 3-1-stable, but is after the 3.1.1 RC1 tag so will probably be in 3.1.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running: rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Everything precompiles but not my /app/assets/images/* I even
Setup error.sass is under app/assets/stylesheets I ran bundle exec rake assets:precompile error.css is in
When I start up rails in production mode, it precompiles all the assets but
app/assets/stylesheets/application.css *= require formtastic I get this error: rake assets:precompile /Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby /Users/Nerian/.rvm/gems/ruby-1.9.3-rc1@davinci/bin/rake assets:precompile:all RAILS_ENV=production
I'm writing a rake task that does some DB work outside of Rails/ActiveRecord. Is
How do you roll back a failed rails migration? I would expect that rake
I have a Rails 3 gem which has some rake tasks that should only
I first switch to a separate heroku_branch branch to keep the precompiled assets from
I'm unable to get rake precompile tasks running with Rails 3.1.3. I get the
I'm not sure why, but whenever I run rake assets:precompile , application.js doesn't get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.