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
master
Ken Newman 2020-04-22 23:12:23 -04:00 committed by GitHub
parent 7ab018e367
commit ebe3ec6b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);
};