livingstyleguide / livingstyleguide

Easily create front-end style guides with Markdown and Sass/SCSS.
https://livingstyleguide.org/
Other
871 stars 81 forks source link

Application stylesheet needs to specify complete file extension for `@import` #16

Open jhilden opened 11 years ago

jhilden commented 11 years ago

Before using livingstyleguide, I could do this in my Rails app to @import a Sass partial at app/assets/stylesheets/base/_colors.css.sass:

// application.css.sass
@import base/colors

Now I have to write the fulle file extension, otherwise I get an error File to import not found or unreadable:

// application.css.sass
@import base/colors.css.sass

Or the other solution is to rename the partial mv _colors.css.sass _colors.sass

skorfmann commented 10 years ago

That's stopping me from using this at the moment. Other solutions besides from renaming everything?

hagenburger commented 10 years ago

This might be a very very time-consuming task to find out. I’m not familiar with all internals of Sprockets. It would be great to dive into this in a session with somebody else. I would be very open for this.