fix: 添加img

2024
彭翩 9 months ago
parent c275ff032b
commit a0695ad20f

@ -98,12 +98,20 @@ gulp.task('script', () => {
.pipe(gulp.dest("dist/static/lib/")) .pipe(gulp.dest("dist/static/lib/"))
.pipe(connect.reload()); //更新; .pipe(connect.reload()); //更新;
}); });
gulp.task("img", function () {
return gulp
.src("src/static/img/*")
.pipe(gulp.dest("dist/static/img/"))
.pipe(connect.reload()); //更新;
});
gulp.task( gulp.task(
"default", "default",
gulp.series( gulp.series(
"clean", "clean",
"scss", "scss",
gulp.parallel("html","lib","script", "css"), gulp.parallel("html","lib","script","img", "css"),
gulp.parallel("connect", "watchs") gulp.parallel("connect", "watchs")
) )
); );
@ -113,6 +121,6 @@ gulp.task(
gulp.series( gulp.series(
"clean", "clean",
"scss", "scss",
gulp.parallel("html","lib","script", "css") gulp.parallel("html","lib","script","img", "css")
) )
); );

Loading…
Cancel
Save