diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index cbbb0ca..7a29aa3 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -75,7 +75,7 @@ module.exports = (src, dest, preview) => () => { Promise.all(mtimePromises).then((mtimes) => { const newestMtime = mtimes.reduce((max, curr) => (!max || curr > max ? curr : max)) if (newestMtime > file.stat.mtime) file.stat.mtimeMs = +(file.stat.mtime = newestMtime) - file.contents = bundleBuffer + if (bundleBuffer !== undefined) file.contents = bundleBuffer file.path = file.path.slice(0, file.path.length - 10) + '.js' next(bundleError, file) })