Skip to content

Commit ebe3ec6

Browse files
authoredApr 23, 2020
Set appropriate file stat times (#763)
* 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
1 parent 7ab018e commit ebe3ec6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎index.js

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ const gulpSass = (options, sync) => through.obj((file, enc, cb) => { // eslint-d
9999
file.contents = sassObj.css; // eslint-disable-line no-param-reassign
100100
file.path = replaceExtension(file.path, '.css'); // eslint-disable-line no-param-reassign
101101

102+
if (file.stat) {
103+
file.stat.atime = file.stat.mtime = file.stat.ctime = new Date(); // eslint-disable-line
104+
}
105+
102106
cb(null, file);
103107
};
104108

0 commit comments

Comments
 (0)
Please sign in to comment.