Allow 'index' to be a possible file to import
See original GitHub issueIt 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.
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.
Issue Analytics
- State:
- Created 11 years ago
- Reactions:60
- Comments:33 (5 by maintainers)
Top Results From Across the Web
Enable Indexes and Constraints - SQL Server
Right-click the index you want to enable and select Rebuild. In the Rebuild Indexes dialog box, verify that the correct index is in...
Read more >ES6 exporting/importing in index file - javascript
I exposed in the index file in this way: import { Schema ... index.js";. This would allow each exported module to be imported...
Read more >Using index files when working with Sass and @use rules
A new way to import#. Before the @use at-rule was introduced to Sass, we relied on importing things (mixins, variables, stylesheets) with the ......
Read more >Using index.ts file to organize import statements.
We can import more than one component, module from same import statement even though they are in different .ts files. This is possible...
Read more >DocFetcher - Import an old index file to a newer version
I would like to know, if it is possible to just copy a index file from ... there are currently no plans to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some people would prefer the name
_module.scss
. Others would prefer_index.scss
,_style.scss
,_component.scss
,_loader.scss
or something else.It would be great if the name of the index file could be configured, so we could all use our own personal preference.
I’m very sad this is still not in?