You can clone with
No one assigned
It would be great to allow an index.scss file to be imported if a directory is found. Example
If ./fruits is found to be a directory, it would look for ./fruits/index.scss or ./fruits/index.sass.
The reason behind this is to make it easier to consume packages containing Sass files. For example.
We can then download packages into a directory, add that directory as a single load path and then in our main file we can easily do:
Which is a little neater than any alternative.
I attempted to do a pull request for this, but alas, my skills are weak
This seems reasonable to me.
Isn't this basically Sass globbing?
Not really. It more like an alias. It could theoretically live anywhere. If Sass packages all do this then there is a guaranteed, single entry point for every library.
I think I see your point. So the difference is:
If this rule would be for all stylesheets, including site/application stylesheets, _style might be better — index is an odd conflation with html. Chris's suggestion _module works too.
index is nice because it's consistent with conventions used by other languages, but we would want it to be a partial. _index is less similar, so _module might be a better way to go for that reason.
I only suggested index because that is what I'm used to with node and Component. The name doesn't particular matter too much. It would be nice to get this before 4.0 as it seems like it could be trivial to implement and would make using Sass with tools like Bower and Component easier.
@robwierzbowski Globbing won't really work with a module system though. Modules should have a single entry point where they 'export' what consumers need.
@anthonyshort You're totally right. Took me a min to get my head around it.
After working with node fort a few weeks, I take back my objections to _index.scss. Of all the options it's now the one I prefer the most .
Totally wish I had this feature right now...