Skip to content

Commit

Permalink
Pass along sass's stats object
Browse files Browse the repository at this point in the history
The `stats` object that's returned from the sass compiler contains some interesting info, particularly `includedFiles` which can be used to develop smarter watchers. Related to dlmanning#279, fixed dlmanning#428
  • Loading branch information
WraithKenny authored and niksy committed Jan 24, 2022
1 parent c04bb67 commit 5fba159
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const filePush = (file, sassObject, callback) => {
file.stat.atime = file.stat.mtime = file.stat.ctime = new Date();
}

// Pass along some potentially useful data.
file.sassStats = sassObject.stats;

callback(null, file);
};

Expand Down

0 comments on commit 5fba159

Please sign in to comment.