Include parent directory in gulp src task -
i create resources.zip
file contain css/styles.css
. far have got of working, problem archive contains styles.css file , not parent directory css
.
gulpfile.js
const gulp = require('gulp'); const zip = require('gulp-zip'); gulp.task('default', () => { return gulp.src('css/*') .pipe(zip('resources.zip')) .pipe(gulp.dest('build')); });
i think need setup base gulp.src
:
gulp.src('css/*', {base: '.'})
this because default base is:
default: before glob starts (see glob2base)
Comments
Post a Comment