Closed madastro closed 9 years ago
untested:
gulp.task('build', function() {
return gulp.src(css)
.pipe(minify({
keepSpecialComments: 1,
keepBreaks: true
}))
.pipe(rename(function(opt) {
opt.basename = opt.basename.replace(/^SN[0-9]+_/, '');
return opt;
}))
.pipe(gulp.dest(dest))
});
@psi-4ward is right.
I have several files with the following format:
is it possible to remove the SN*_ part of those files and leave the template#.css as is? This is the current gulp.task that I'll be adding the rename pipe to: