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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:32:24+00:00 2026-06-13T01:32:24+00:00

I use codekit for writing less which it then converts to css automatically. I

  • 0

I use codekit for writing less which it then converts to css automatically.

I don’t want rails to convert my less files to css, I rather codekit do it.

if I precompile the assets via

rake assets:precompile

I get

rake aborted!
cannot load such file -- less

How do I exclude a specific folder/file types from precompiling? (all my less files are in app/assets/stylesheets/less and the css (which I do want to be precompiled) are in app/assets/stylesheets/css

update

deleting application.less solves this but how do I excluding it from processing in the first place?

  • 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-13T01:32:25+00:00Added an answer on June 13, 2026 at 1:32 am

    From the Asset Pipeline guide:

    The default matcher for compiling files includes application.js,
    application.css and all non-JS/CSS files (i.e., .coffee and .scss
    files are not automatically included as they compile to JS/CSS):

    [ Proc.new{ |path| !File.extname(path).in?(['.js', '.css']) }, /application.(css|js)$/ ]
    

    If you have other manifests or individual stylesheets and JavaScript
    files to include, you can add them to the precompile array:

    config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js']
    

    So, I would say that your solution is to modify config.assets.precompile to exclude .less files. Maybe something like this (in a suitable environment file, like config/environments/production.rb):

    config.assets.precompile = [ Proc.new{ |path| !File.extname(path).in?(['.js', '.css', '.less']) }, /application.(css|js)$/ ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Use case: we have some project meta-data files which we want tracked, but are
I recently moved from using Less to using Compass. I use Codekit, but dont
Use: The user searches for a partial postcode such as 'RG20' which should then
use C#,want to upload excel file on google doc. bellow syntax use to upload
Use the static modifier to declare a static member, which belongs to the type
Use case: You have 2-3 files displayed in your MacVim window(s). You press ctrl+Q
I'm new to sass and zurb foundation (I've used bootstrap/less via codekit in the
use ruby 1.9.2 rails 3.1.3 rake 0.8.7 and when rake cucumber start i have
use case is simple: I want to run some boiler plate code before each
Use case is this: I want to unit test (in browser, QUnit or something

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.