1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00
ttrss/gulpfile.js
2020-09-18 12:14:37 +03:00

32 lines
648 B
JavaScript

// Less configuration
const gulp = require('gulp');
const less = require('gulp-less');
function swallowError(error) {
console.log(error.toString())
this.emit('end')
}
gulp.task('less', function(cb) {
gulp
.src(['themes/compact.less', 'themes/compact_night.less',
'themes/light.less', 'themes/night_blue.less', 'themes/night.less'])
.pipe(less())
.on('error', swallowError)
.pipe(
gulp.dest(function(f) {
return f.base;
})
);
cb();
});
gulp.task(
'default',
gulp.series('less', function(cb) {
gulp.watch(['themes/*.less', 'themes/*/*.less'], gulp.series('less'));
cb();
})
);