I'm working with a large codebase of sass files, where some files @import other partial files.
When a partial file changes, I would like to be able to compile all of its dependencies (files that @import it), using a watch and a newer:sass tasks.
I thought the override function will allow me to to the following pseudo code:
foreach changed file
if file is partial
get all non-changed files that import the partial file
include these files for the task
But the list of changed files is not available in the override function.
Instead, with current implementation, i need to go over all of the non-changed files, extract all of their @imprort-ed files, and check if the partial file has been changed lately, and only then i can decide if the file should be included or not. that is very inefficient.
I wonder if it possible to pass the list of changed files to the override function.
I'm working with a large codebase of sass files, where some files @import other partial files. When a partial file changes, I would like to be able to compile all of its dependencies (files that @import it), using a watch and a newer:sass tasks.
I thought the override function will allow me to to the following pseudo code:
But the list of changed files is not available in the override function.
Instead, with current implementation, i need to go over all of the non-changed files, extract all of their @imprort-ed files, and check if the partial file has been changed lately, and only then i can decide if the file should be included or not. that is very inefficient.
I wonder if it possible to pass the list of changed files to the override function.