zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.

Home Page:http://zmoazeni.github.io/csscss/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fail on import of Compass plugin

D-Land opened this issue · comments

I keep getting CSSCSS failures on sass @imports that are importing compass plugins (doesn't matter what compass plugin it is but breakpoint is shown in the screen shot). The project I am currently working on is using CSSCSS through a grunt task using https://github.com/robwierzbowski/generator-jekyllrb and when it runs CSSCSS against my Scss it fails on that import. My full project is https://github.com/D-Land/drewland.me.

The issue is also open on that project here:
robwierzbowski/generator-jekyllrb/issues/49

Any clarity on the issue would be most appreciated.

screen shot 2013-12-04 at 12 52 44 am

I'm experiencing the same issue. I'm not attempting to @import Compass, but Bourbon. I'd love to hear a solution to this. It seems the @import is attempting to load the file from the root of the app. I have Bourbon installed in a subdirectory _bower_components. Is there a way to provide csscss with additional load paths? Does csscss have a "loadPath" option?

screen shot 2013-12-21 at 9 45 18 pm

@D-Land I was able to run csscss by creating a config file: config.rb with these contents:

# in config.rb
require 'singularitygs'
require 'breakpoint'
ruby-2.0.0-p353 ~/projects/drewland.me (master) ∴ be csscss --compass app/_scss/main.scss 
{.footer-nav li}, {.footer-social li} AND {.index-nav li} share 8 rules
{.footer-nav} AND {.nav-links} share 7 rules
{.footer-nav} AND {.footer-social} share 6 rules
{.footer-nav li}, {.footer-social li}, {.index-nav li} AND {.nav-links li} share 6 rules
{.footer-social}, {.index-nav} AND {.nav-links} share 6 rules
{.footer-nav} AND {.index-nav} share 5 rules
{.footer-container} AND {.footer-social} share 4 rules
{.footer-copyright}, {.footer-social} AND {.nav-twitter} share 3 rules
{.nav-links} AND {.nav-links li} share 3 rules
{.index-drew-text,
.index-land-text} AND {.index-nav} share 3 rules
{.footer-container}, {.footer-social} AND {.nav-container} share 3 rules
{.footer-container:after}, {.footer-nav ul:after}, {.footer-social ul:after} AND {.nav-container:after} share 3 rules

@dcalhoun There are two different ways right now (kinda ugly at the moment). --compass-with-config config and --require file.rb. --compass will look for config.rb by default.

Those will require the ruby files which you can hijack and do whatever you need.