Làm cách nào tôi có thể làm điều kiện bên trong ống Gulp để xuất ra một điểm đến khác.Điều kiện Gulp bên trong đường ống
g.task('sass', function() {
return g.src(sources.sass).pipe(changed(output.css)).pipe(sass({
style: 'compressed',
sourcemap: true
})).pipe(function() {
if (..) {
g.dest(output.css);
} else {
g.dest(output.css2);
}
}).pipe(notify('scss converted to css and
compressed
<%=f ile.relative %>'));
});
gì loại biểu thức bạn muốn sử dụng? – havenchyk