From 358cdcb34c226f423cbb4fe72496ef49efaafb19 Mon Sep 17 00:00:00 2001 From: Ken Newman Date: Wed, 21 Jul 2021 17:24:40 -0400 Subject: [PATCH] Pass along sass's `stats` object 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 #279, fixed #428 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 7b011ef4..cd447cba 100644 --- a/index.js +++ b/index.js @@ -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); };