bol/gulpfile.js
Nicolas Delaforge 9f907c9417 initial import
2021-07-08 10:14:44 +02:00

34 lines
762 B
JavaScript

const gulp = require('gulp');
const less = require('gulp-less');
/* ----------------------------------------- */
/* Compile LESS
/* ----------------------------------------- */
const SIMPLE_LESS = ["styles/**/*.less"];
function compileLESS() {
return gulp.src("styles/bol.less")
.pipe(less())
.pipe(gulp.dest("./css"))
}
const css = gulp.series(compileLESS);
/* ----------------------------------------- */
/* Watch Updates
/* ----------------------------------------- */
function watchUpdates() {
gulp.watch(SIMPLE_LESS, css);
}
/* ----------------------------------------- */
/* Export Tasks
/* ----------------------------------------- */
exports.default = gulp.series(
gulp.parallel(css),
watchUpdates
);
exports.css = css;