Compare commits

...

2 Commits

Author SHA1 Message Date
彭翩 6898e09102 fix: 添加 9 months ago
彭翩 a0695ad20f fix: 添加img 9 months ago

@ -9,6 +9,11 @@ npm install
npm run dev
npm run build
```
## 分支2024
一个H5静态网页demo
## 分支common
普通静态页面

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

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"script": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js script",
"serve": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js",
"dev": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js",
"build": "node --max_old_space_size=8096 node_modules/gulp-cli/bin/gulp.js build"
},
"repository": {

Loading…
Cancel
Save