From 9597a28320d5906671f32dbfff5729f98073949e Mon Sep 17 00:00:00 2001 From: Mattia Natali Date: Mon, 23 Oct 2017 11:52:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Optimized=20gulp=20zip=20file=20?= =?UTF-8?q?generation=20(#403)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue - Optimised the `gulp zip` task, so the zip file doesn't include the `assets/css` (`built` folder is used for CSS) and the `dist` folder (is used to output the zip file) --- gulpfile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index a77b787..e7aac60 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -56,7 +56,12 @@ gulp.task('zip', ['css'], function() { var themeName = require('./package.json').name; var filename = themeName + '.zip'; - return gulp.src(['**', '!node_modules', '!node_modules/**']) + return gulp.src([ + '**', + '!node_modules', '!node_modules/**', + '!dist', '!dist/**', + '!assets/css', '!assets/css/**', + ]) .pipe(zip(filename)) .pipe(gulp.dest(targetDir)); });