Open cm325 opened 9 years ago
I haven't gotten gulp.src()
as a passthrough to work, despite that changelog.
couldn't get passthrough to work either. using merge streams.
var merge = require('merge-stream');
merge(
gulp.src(paths[env].less)
.pipe(plugins.preprocess(getPreprocessContext()))
.pipe(plugins.less()),
// merges with the vendor css files
gulp.src(paths.vendor.css)
)
.pipe(plugins.concat(project.name + '-' + project.version + '.css'))
.pipe(plugins.autoprefixer(['> 1%', 'last 3 versions']))
.pipe(gulp.dest(paths.build_dir + 'assets/'));
This is only available in Gulp 4. https://github.com/gulpjs/gulp/issues/1508#issuecomment-177430083
with gulp version 3.8.0, gulp.src is now a writable passthrough
http://stackoverflow.com/a/24501930/228369