bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

SASS "&" nested selector is not compiling #184

Closed bethcarslaw closed 3 years ago

bethcarslaw commented 3 years ago

I'm trying to make use of the &__ syntax for creating BEM selectors. I've tested the code I wrote in a SASS validator and it compiles fine however trying to use this syntax in my dugway css.sass files results in it not compiling.

.test
    color: red
    &__other
        color: blue

I expected the "other" class to compile to .test__other { color: blue } but it just fails.

The above example works fine on https://www.sassmeister.com/

brettchalupa commented 3 years ago

@dalecarslaw thanks for logging this, I appreciate it! I'll investigate the issue this week and see what I can find. I'm guessing it may be related to our Sass library being a bit out of date, so I'll see what I can find.

brettchalupa commented 3 years ago

@dalecarslaw I just cut a new gem version for this fix. If you run gem install dugway, ver 1.0.3 should install and fix your issue. LMK if anything's still not working right after that!