at-import / breakpoint

Really simple media queries in Sass
MIT License
2.09k stars 142 forks source link

File to import not found or unreadable #95

Closed agarzola closed 10 years ago

agarzola commented 10 years ago

Hi. I’m using breakpoint within a serve project. After adding require 'breakpoint' to my './config.ru' and @import 'breakpoint' to my stylesheets, breakpoint works well while running serve (which I actually run via Pow).

However, when using serve export to export the site to static HTML/CSS/JS files within a predetermined folder, I get the following error in my stylesheets:

/*
Syntax error: File to import not found or unreadable: breakpoint.
          Load paths:
            /Users/agarzola/git/devdev-splash/stylesheets
            /Users/agarzola/.rvm/gems/ruby-1.9.2-p290/gems/compass-core-1.0.0.alpha.16/stylesheets
            Compass::SpriteImporter
    on line 5 of ./stylesheets/screen.sass

1: /Users/agarzola/git/devdev-splash/stylesheets/screen.sass

Backtrace:
./stylesheets/screen.sass:5
[…]
*/

I’ve been poking around the serve gem itself and found that export simply runs compass compile -c '#{@input}/compass.config' '#{@input}' to compile stylesheets before copying them to the destination folder. I had also learned some time ago that the export feature does not yet use config.ru (as it should), and I haven’t been able to figure out where exactly I need to tell compass to use the installed breakpoint gem.

I created an issue on the serve project, but I’m hoping someone here can share some much needed insight. Thanks!

Snugug commented 10 years ago

As this is not an issue with Breakpoint itself, but rather using Compass extensions with serve, I feel as if it's inappropriate for this to be in the issue queue as per our Getting Help with Breakpoint guidelines. I encourage you to re-post this issue over on Stack Overflow and tag it with breakpoint-sass and maybe ruby as well.

agarzola commented 10 years ago

Will do, @Snugug. Thanks!