From c33935c5f02da7d4e0c5cc4dfc8a23eeb54e0be1 Mon Sep 17 00:00:00 2001 From: 1549469775 <1549469775@qq.com> Date: Sun, 26 Sep 2021 14:57:30 +0800 Subject: [PATCH] public --- gulpfile.js/index.js | 4 ++-- src/public/b.txt | 0 src/public/static/a.txt | 1 + src/static/a.txt | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/public/b.txt create mode 100644 src/public/static/a.txt delete mode 100644 src/static/a.txt diff --git a/gulpfile.js/index.js b/gulpfile.js/index.js index 02b4ac0..0624517 100644 --- a/gulpfile.js/index.js +++ b/gulpfile.js/index.js @@ -52,7 +52,7 @@ function asset(name="index") { } // 静态资源 function static() { - return src([`${srcPath}/static/**/*`,exculde]).pipe(dest(`${distPath}/static`)) + return src([`${srcPath}/public/**/*`,exculde]).pipe(dest(`${distPath}`)) } // 处理页面 function pageFn(name="index") { @@ -80,7 +80,7 @@ function watchTask() { baseDir: `./${distPath}`, } }); - watch([`${srcPath}/static/**/*`], series(removeStatic, static)) + watch([`${srcPath}/public/**/*`], static) // series(removeStatic, static) .on("add", reload) .on("change", reload) .on("unlink", reload) diff --git a/src/public/b.txt b/src/public/b.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/public/static/a.txt b/src/public/static/a.txt new file mode 100644 index 0000000..95ebcc1 --- /dev/null +++ b/src/public/static/a.txt @@ -0,0 +1 @@ +sadasdasdas \ No newline at end of file diff --git a/src/static/a.txt b/src/static/a.txt deleted file mode 100644 index 95ebcc1..0000000 --- a/src/static/a.txt +++ /dev/null @@ -1 +0,0 @@ -sadasdasdas \ No newline at end of file