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 8198261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:54:53+00:00 2026-06-07T05:54:53+00:00

Could I run rake assets:precompile for specific JavaScript file? Otherwise the full precompile lasts

  • 0

Could I run rake assets:precompile for specific JavaScript file?

Otherwise the full precompile lasts for 5 minutes and makes quick changes in JavaScript files very annoying.

  • 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-06-07T05:54:53+00:00Added an answer on June 7, 2026 at 5:54 am

    Short: You can’t.

    During precompilation Rails goes through the Application.js file and merges all imports into one so just changing one file is simply not possible due to the compression that goes on in there. (It doesn’t do anything to files not referenced from application.js)

    Next up: You should not have to run rake assets:precompile during development when doing quick fixes. Only on deployment where (depending on your patience) it should be no problem having the task run 5 minutes.

    You should be using the development environment during development where asset precompilation is not necessary because Rails will serve the assets unmerged and un-minified.
    If you are running the Rails build in web-server through rails s this should be by default, but you can explicitly start the rails server using:

    rails s RAILS_ENV=development

    If the assets are still not correctly displayed or you see errors make sure you have config.assets.debug = true

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

Sidebar

Related Questions

Could somebody explain to me what the command rake assets:clean really does? Unfortunately the
I am running Rails 3.2.3 and when I run rake asset:precompile It takes round
I try to run spec tests and I get bundle exec rake spec Could
$bundle exec rspec spec/ Could not find rake-0.9.2.2 in any of the sources Run
When I run rake asset:precompile I get the following error: Invalid CSS after float:left:
Is there any way I could run the following 'logical code' to actually work?
I want to build an application using Quicktime ActiveX interop that could run on
I have spent much time looking for a special package that could run the
I have a valid developer profile. I could run and debug my app in
How could I run a game made with XNA on the iPhone/iTouch? Which steps/tools

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.