blitzrk / sublime_libsass

Build system for Sass/scss files in Sublime Text 2/3 with no external dependencies
MIT License
18 stars 2 forks source link

Recursive partial imports #1

Closed blitzrk closed 8 years ago

blitzrk commented 8 years ago

main.scss may @import _base.scss which @imports _reset.scss. Building _reset.scss will currently only go one level up and try to compile _base.scss.

When collecting files, keep a list to check for duplicate results from grep_r. Add new results and recursively search partials. Keep a list of partials searched, too, if you want to react to infinite loops.

blitzrk commented 8 years ago

Testing seems to show that this is working now.

This is the most difficult thing the plugin does. Unless this project significantly grows in size/scope, I'll leave testing to the users instead of unit tests.