We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60d4b0 commit 3be1397Copy full SHA for 3be1397
gulp.d/tasks/build.js
@@ -32,7 +32,7 @@ module.exports = (src, dest, preview) => () => {
32
.reduce((accum, { file: depPath, type }) => (type === 'dependency' ? accum.concat(depPath) : accum), [])
33
.map((importedPath) => fsp.stat(importedPath).then(({ mtime }) => mtime))
34
).then((mtimes) => {
35
- const newestMtime = mtimes.reduce((max, curr) => (!max || curr > max ? curr : max))
+ const newestMtime = mtimes.reduce((max, curr) => (!max || curr > max ? curr : max), file.stat.mtime)
36
if (newestMtime > file.stat.mtime) file.stat.mtimeMs = +(file.stat.mtime = newestMtime)
37
}),
38
postcssUrl([
0 commit comments