From 42ed62034c0cf515d6900949088139857ef7f916 Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Fri, 24 Jul 2020 14:50:47 +0100 Subject: [PATCH] Reordering gulpfile commands --- blog/gulpfile.js/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blog/gulpfile.js/index.js b/blog/gulpfile.js/index.js index 2de8ccb..1fcd7d6 100644 --- a/blog/gulpfile.js/index.js +++ b/blog/gulpfile.js/index.js @@ -59,6 +59,7 @@ async function buildTheme(cb) { await exec( `cd ${themeDir} && node ${themeDir}/node_modules/webpack/bin/webpack.js --config ${themeDir}/webpack.prod.js` ); + cb(); } // Clear ./static/dist @@ -130,9 +131,9 @@ module.exports = { buildLunr: gulp.series(cleanJS, minifyJS, insertLunrJS), buildBlog: gulp.series([ buildSearch, - buildHugo, buildTheme, - minifyImages, gulp.series(cleanJS, minifyJS, insertLunrJS), + buildHugo, + minifyImages, ]), };