From 5fba159eea00e3c3b95330c5e0234cfecc86b724 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 3a027bc9..3b54ee7e 100644 --- a/index.js +++ b/index.js @@ -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); };