worldbuilding/gulpfile.js
2020-07-27 18:14:08 +00:00

32 lines
757 B
JavaScript

const gulp = require('gulp');
const less = require('gulp-less');
/* ----------------------------------------- */
/* Compile LESS
/* ----------------------------------------- */
const SIMPLE_LESS = ["styles/*.less"];
function compileLESS() {
return gulp.src("styles/simple.less")
.pipe(less())
.pipe(gulp.dest("./styles/"))
}
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;