Skip to content

Allow 'index' to be a possible file to import #690

@anthonyshort

Description

@anthonyshort

It would be great to allow an index.scss file to be imported if a directory is found. Example

@import "./fruits"

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.

Screen Shot 2013-03-20 at 11 07 41 PM

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:

@import "nib-styles-common";
@import "nib-styles-dialog";

Which is a little neater than any alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededplannedWe would like to add this feature at some point

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions