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") ) );