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 69c4b9e commit bbbf289Copy full SHA for bbbf289
gulp.d/tasks/build.js
@@ -80,7 +80,7 @@ module.exports = (src, dest, preview) => () => {
80
})
81
.bundle((bundleError, bundleBuffer) =>
82
Promise.all(mtimePromises).then((mtimes) => {
83
- const newestMtime = mtimes.reduce((max, curr) => (!max || curr > max ? curr : max))
+ const newestMtime = mtimes.reduce((max, curr) => (curr > max ? curr : max), file.stat.mtime)
84
if (newestMtime > file.stat.mtime) file.stat.mtimeMs = +(file.stat.mtime = newestMtime)
85
if (bundleBuffer !== undefined) file.contents = bundleBuffer
86
file.path = file.path.slice(0, file.path.length - 10) + '.js'
0 commit comments