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

  • SEARCH
  • Home
  • 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 8985337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:18:29+00:00 2026-06-15T21:18:29+00:00

I am not using Rails. I’m using sprockets’ built in compiler task SprocketsTask .

  • 0

I am not using Rails.

I’m using sprockets’ built in compiler task SprocketsTask. The source can be found here.

I want to disable the file digests that are appended to each file. So application-e7aa01ce5sdf9e6sdfdssd8sdfds8bb.css will just become application.css.

There seems to be no documentation that I can find, and I’ve looked through the source quite a lot. I’m aware that I could remove the digest after the file has been created, but I thought i’d see if anyone had any better ideas first.

Thanks in advance.

  • 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-15T21:18:30+00:00Added an answer on June 15, 2026 at 9:18 pm

    # Rakefile

    require "sprockets"
    
    assets = Sprockets::Environment.new
    assets.append_path "app/assets/javascripts"
    
    task :assets do
        assets["application.js"].write_to "output/assets"
    end
    

    $ rake assets

    with filters

    # Rakefile

    require "sprockets"
    
    assets = Sprockets::Environment.new
    assets.append_path "app/assets/javascripts"
    LOOSE_APP_ASSETS = lambda do |path, filename|
     filename !~ %r~app/assets~  && !%w[.js .css].include?(File.extname(path))
    end
    precompile = [LOOSE_APP_ASSETS, /(?:\/|\\|\A)application\.(css|js)$/]
    
    task :assets do
        assets.each_logical_path(*precompile).each {|path|
            assets[path].write_to "output/assets/#{path}"
        }
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build an application using Rails 3.0.1 but do not want to
(I'm not using Rails) I have a rake task that sets the environment that
I'm using Rails on Heroku Cedar stack and it's not throwing any issues while
I'm using Rails 3.2.2 and am not getting the field_with_errors div when the validation
Using Rails 3.2.2 and ruby 1.9.2 and I am not able to serve assets
I'm using rails 2.3.5 with i18n. I's there a way to find all not
Using Rails 3.1.3 with Ruby 1.9.3p0. I've discovered that by default, Rails does not
I just get started using BDD in Rails application, but I'm not sure what
I've started using S3 to host images connected to Rails models. Images are not
NOT USING A XML PARSER I want to get the contents of the XML

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.