From a0695ad20fb041c9dc23664ab72d2f0503043840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E7=BF=A9?= Date: Wed, 13 Mar 2024 16:06:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0img?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 06ee8e1..f6ce212 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -98,12 +98,20 @@ gulp.task('script', () => { .pipe(gulp.dest("dist/static/lib/")) .pipe(connect.reload()); //更新; }); + + gulp.task("img", function () { + return gulp + .src("src/static/img/*") + .pipe(gulp.dest("dist/static/img/")) + .pipe(connect.reload()); //更新; + }); + gulp.task( "default", gulp.series( "clean", "scss", - gulp.parallel("html","lib","script", "css"), + gulp.parallel("html","lib","script","img", "css"), gulp.parallel("connect", "watchs") ) ); @@ -113,6 +121,6 @@ gulp.task( gulp.series( "clean", "scss", - gulp.parallel("html","lib","script", "css") + gulp.parallel("html","lib","script","img", "css") ) );