These are chat archives for andrew/node-sass

20th
May 2014
Steven Migliorato
@stoolio
May 20 2014 19:39
My only question in the whole world: Is there a way to easily import a standard css file into a .scss file (so that node-sass can smash it together and compress it all)
Sam Saccone
@samccone
May 20 2014 19:39
ha
sure
@import @stoolio
Steven Migliorato
@stoolio
May 20 2014 19:40
If i use @import with a standard css file, like `@import 'mycss'` it just gets plopped into my output file as is
I tried adding a .css extension, as well as a full path, and the same deal.
It's because @import is acutally a css statement, confuses matters
The original sass project has a hefty discussion of the issue nex3/sass#193
Also, I did try changing the extension to .scss, but the the sass compiler choked on an alpha() statement.
Steven Migliorato
@stoolio
May 20 2014 19:45
Not everyone will have that problem though
Sam Saccone
@samccone
May 20 2014 19:46
ah @stoolio i see
sorry i was thinking in stylus land :)
where they have a flag you can turn it on
yeah rough...
i would say convert it to scss like you tried
weird about the alpha info
Steven Migliorato
@stoolio
May 20 2014 19:47
its a stupid function for ie support
Sam Saccone
@samccone
May 20 2014 19:47
:|
Steven Migliorato
@stoolio
May 20 2014 19:47
therefore.....
Sam Saccone
@samccone
May 20 2014 19:48
i think sass has a way to write that
basically you are going to need to mutate your css file :(
stinks
or use another build process to do the concat
and such
Steven Migliorato
@stoolio
May 20 2014 19:49
It's actually the select2 css file, so perhaps if I work this out I will pass it on to those folks.
Anyways, thanks for the prompt help. I had no idea what this gitter was when I clicked, but I've been pleasantly surprised.
Sam Saccone
@samccone
May 20 2014 19:49
heh
indeed
node-sass is a nice lil project
Steven Migliorato
@stoolio
May 20 2014 20:03

I've been super happy with it. And, here was my solution:
The IE functions were only used 7-8 times throughout, so I just renamed ext to .scss, and wrapped all of the IE functions with:

unquote("someIEfunc(blah)")
//example
filter: unquote("alpha(opacity=0)");

Worked like a charm.