Compare commits

..

No commits in common. '6898e0910260a78f154581a74d6614e40b78c390' and 'c275ff032b7fe421f2fb33288c502c4e4edecc21' have entirely different histories.

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

@ -98,20 +98,12 @@ 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","img", "css"), gulp.parallel("html","lib","script", "css"),
gulp.parallel("connect", "watchs") gulp.parallel("connect", "watchs")
) )
); );
@ -121,6 +113,6 @@ gulp.task(
gulp.series( gulp.series(
"clean", "clean",
"scss", "scss",
gulp.parallel("html","lib","script","img", "css") gulp.parallel("html","lib","script", "css")
) )
); );

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

Loading…
Cancel
Save