Reordering gulpfile commands
This commit is contained in:
@@ -59,6 +59,7 @@ async function buildTheme(cb) {
|
|||||||
await exec(
|
await exec(
|
||||||
`cd ${themeDir} && node ${themeDir}/node_modules/webpack/bin/webpack.js --config ${themeDir}/webpack.prod.js`
|
`cd ${themeDir} && node ${themeDir}/node_modules/webpack/bin/webpack.js --config ${themeDir}/webpack.prod.js`
|
||||||
);
|
);
|
||||||
|
cb();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear ./static/dist
|
// Clear ./static/dist
|
||||||
@@ -130,9 +131,9 @@ module.exports = {
|
|||||||
buildLunr: gulp.series(cleanJS, minifyJS, insertLunrJS),
|
buildLunr: gulp.series(cleanJS, minifyJS, insertLunrJS),
|
||||||
buildBlog: gulp.series([
|
buildBlog: gulp.series([
|
||||||
buildSearch,
|
buildSearch,
|
||||||
buildHugo,
|
|
||||||
buildTheme,
|
buildTheme,
|
||||||
minifyImages,
|
|
||||||
gulp.series(cleanJS, minifyJS, insertLunrJS),
|
gulp.series(cleanJS, minifyJS, insertLunrJS),
|
||||||
|
buildHugo,
|
||||||
|
minifyImages,
|
||||||
]),
|
]),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user