Skip to content

Commit

Permalink
Set appropriate file stat times (#763)
Browse files Browse the repository at this point in the history
* Set appropriate file stat times

Since we are creating the destination file, it's our responsibility to set the file stat times.

* fix code style
  • Loading branch information
WraithKenny committed Apr 23, 2020
1 parent 7ab018e commit ebe3ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -99,6 +99,10 @@ const gulpSass = (options, sync) => through.obj((file, enc, cb) => { // eslint-d
file.contents = sassObj.css; // eslint-disable-line no-param-reassign
file.path = replaceExtension(file.path, '.css'); // eslint-disable-line no-param-reassign

if (file.stat) {
file.stat.atime = file.stat.mtime = file.stat.ctime = new Date(); // eslint-disable-line
}

cb(null, file);
};

Expand Down

0 comments on commit ebe3ec6

Please sign in to comment.