function stylusTask() {
return src(path.stylus.src)
.pipe(plumber())
.pipe(stylus({
use: nib(),
import: ['nib'],
compress: true,
define: {
url: require('stylus').url({
limit: 1
})
}
}))
.pipe(dest(path.stylus.dest))
}
function uploadTask() {
return gulp.src('build/**')
.pipe(rsync({
root: 'build/',
hostname: 'NAME@IP',
destination: '/path/build',
exclude: ['**/Thumbs.db', '**/*.DS_Store'],
recursive: true,
archive: true,
silent: false,
compress: true,
update: true
}))
}