thomas-darling / gulp-dependents

Gulp plugin that tracks dependencies between files and adds any files that depend on the files currently in the stream, thus enabling incremental build.
15 stars 5 forks source link

Support Sass's index files #9

Open chalkygames123 opened 3 years ago

chalkygames123 commented 3 years ago

Hi, thank you for creating the plugin.

Sass's @use, @forward and @import rules have a feature called "Index Files" that when we load a directory itself, its _index.scss or _index.sass used instead.

Could you support that feature?

tedw commented 1 year ago

@chalkygames123 FYI I was able to get it to work by adding index to the path, e.g. @forward "vars/index";

chalkygames123 commented 1 year ago

@tedw Thanks! I have addressed the issue by applying the patch with patch-package, as you can see in the commit linked above.

sashamorozov commented 1 year ago

@chalkygames123 your solution works, thanks a lot!