mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Add watch task
This commit is contained in:
parent
395ad8e035
commit
19d3b559da
4 changed files with 18 additions and 1 deletions
12
tasks/watch.js
Normal file
12
tasks/watch.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue