diff options
author | amzrk2 | 2020-06-15 23:50:54 +0800 |
---|---|---|
committer | amzrk2 | 2020-06-15 23:50:54 +0800 |
commit | a3376d1ad133455b73ca893e222c1aec89ae6d44 (patch) | |
tree | 0f7aecb84d6322972c1580fea2ed3ee60f8eaf25 /gulpfile.js | |
parent | 94233f18bd32d6871288f578df1ecdffe833c02f (diff) | |
download | hugo-theme-fuji-a3376d1ad133455b73ca893e222c1aec89ae6d44.tar.gz hugo-theme-fuji-a3376d1ad133455b73ca893e222c1aec89ae6d44.tar.bz2 hugo-theme-fuji-a3376d1ad133455b73ca893e222c1aec89ae6d44.zip |
Update searching based on Fuse.js
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js index a0df114..792deae 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -58,13 +58,16 @@ function css() { ); } -exports.build = gulp.parallel(js, css); -exports.clean = function () { +function clean() { return del(['static/assets/css/fuji.min.css.map', 'static/assets/js/fuji.min.js.map']); -}; +} + +exports.build = gulp.parallel(js, css, clean); exports.devJs = function () { + devJs(); return gulp.watch('assets/js/fuji.js', { delay: 500 }, devJs); }; exports.devCss = function () { + devJs(); return gulp.watch('assets/**/*.scss', { delay: 500 }, devCss); }; |