Open thealjey opened 5 years ago
Thanks for reporting this issue. If I understand correctly, your requirement is to import and inline the CSS classes with Sass. The problem is caused by two factors:
colors.scss
/colors.sass
export only variables while colors.css
exports CSS classes..css
files.Your suggestion is to address the factor 2, but changing file names breaks existing libraries and applications that depend on this library, which I'd like to avoid.
How about addressing the factor 1 by creating another .scss file like color-classes.scss
with the same content as colors.css
)?
The root cause is the same as in #7. I want to inline import the
colors.css
file, and there're two problems with that.colors
, so if the file extension is omitted the name becomes ambiguous and sass throws an error.css
are not inlined and a normal css@import url(...);
is outputted insteadAs is stands right now, the only solution that works (kinda) is to rename the file before compiling.
So, the question is, could we possibly have more unique file names?