From 559c17ef0df1fb330d19b5fcf81e8a53c8c18f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Wed, 15 May 2019 15:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy_utils/list_images.js | 2 +- gulpfile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy_utils/list_images.js b/deploy_utils/list_images.js index f633323..5bca10a 100644 --- a/deploy_utils/list_images.js +++ b/deploy_utils/list_images.js @@ -48,5 +48,5 @@ function readDirSync(imageFolderPath, images, rootPath, callback, count={fileCou } module.exports = function (rootPath, imageFloder, callback) { - return readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback) + readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback) } diff --git a/gulpfile.js b/gulpfile.js index 7257ffb..2c6760d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -57,7 +57,7 @@ gulp.task('syncImages', () => { return Promise.resolve('未获得accessKey以及accessSecret, 跳过图片同步').then(console.log) } // 同步当前本地存在的所有图片 - return new Promise((resolve)=>{ + return new Promise(resolve => { listImages(`${process.cwd()}/source/`, 'images/', resolve) }).then(imagesList => { const ImageSynchronizer = require('./deploy_utils/image_synchronize')