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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:08:43+00:00 2026-05-30T03:08:43+00:00

Using Middleman 2.0.14, I use the Compass features to generate some sprites in my

  • 0

Using Middleman 2.0.14, I use the Compass features to generate some sprites in my CSS file with:

@import "companies/*.png";
@include all-companies-sprites;

This takes all the files from source/images/companies/*.png and generates a single sprite file source/images/companies-s45e421528f.png. So far, so good.

When I do a middleman build, it dutifully copies over the generated image file, but also includes the companies/*.png files.

Its not a big deal to have a deployment script remove these extra files, but I wonder if there is an option I’m missing somewhere? (Or maybe the ‘almost ready to release MM 3.x’ has a solution?) Perhaps I should put the companies/*.png files somewhere else in the source tree?

  • 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-30T03:08:44+00:00Added an answer on May 30, 2026 at 3:08 am

    I suggest cleaning them up with a script (or an after_build hook). This is the default behavior of Compass, to generate images in development mode, and it would require some monkey patching to alter (for now, the Compass beta have direct access to these options).

    In 3.0, you could try:

    configure :build do
      ignore "source/images/companies/*.png"
    end
    

    But I’m not sure Compass wouldn’t choke on that.

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

Sidebar

Related Questions

I'm using middleman to do some rapid prototyping and can't for the life of
I'm wanting to generate a dynamic zip/gzip file using php (user clicks button/link/whatever, and
I have been using Backbone.js to act as a middleman between Wordpress (using the
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
Using the Redis info command, I am able to get all the stats of
Using import datetime in python, is it possible to take a formatted time/date string
Using ASIHTTPRequest, I downloaded a zip file containing a folder with several audio files.
I've been using some code very similar to the following to populate a gridview
I'm wondering about using Redcarpet's :with_toc_data option for Markdown working with Middleman (a Sinatra-based
How do I read and write a file using a file format which is

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.