snappymail/tasks/watch.js

13 lines
355 B
JavaScript
Raw Normal View History

2019-07-05 04:35:53 +08:00
/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
const gulp = require('gulp');
const { config } = require('./config');
const { cssBuild } = require('./css');
const watchCss = gulp.series(cssBuild, (cb) => {
gulp.watch(config.paths.less.main.watch, { interval: config.watchInterval }, cssBuild);
cb();
});
exports.watchCss = watchCss;