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 Jul 21, 2021
1 parent 8f7683f commit 358cdcb
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 @@ -103,6 +103,9 @@ const gulpSass = (options, sync) => transfob((file, enc, cb) => { // eslint-disa
file.stat.atime = file.stat.mtime = file.stat.ctime = new Date(); // eslint-disable-line
}

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

cb(null, file);
};

Expand Down

0 comments on commit 358cdcb

Please sign in to comment.