25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
|
// Less configuration
|
||
|
const gulp = require('gulp');
|
||
|
const less = require('gulp-less');
|
||
|
|
||
|
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())
|
||
|
.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();
|
||
|
})
|
||
|
);
|