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)

source. zipped file path: zip.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -