forked from GitHub-Mirrors/foundry-sw5e
33 lines
740 B
JavaScript
33 lines
740 B
JavaScript
![]() |
const gulp = require('gulp');
|
||
|
const less = require('gulp-less');
|
||
|
|
||
|
/* ----------------------------------------- */
|
||
|
/* Compile LESS
|
||
|
/* ----------------------------------------- */
|
||
|
|
||
|
const SW5E_LESS = ["less/*.less"];
|
||
|
function compileLESS() {
|
||
|
return gulp.src("less/sw5e.less")
|
||
|
.pipe(less())
|
||
|
.pipe(gulp.dest("./"))
|
||
|
}
|
||
|
const css = gulp.series(compileLESS);
|
||
|
|
||
|
/* ----------------------------------------- */
|
||
|
/* Watch Updates
|
||
|
/* ----------------------------------------- */
|
||
|
|
||
|
function watchUpdates() {
|
||
|
gulp.watch(SW5E_LESS, css);
|
||
|
}
|
||
|
|
||
|
/* ----------------------------------------- */
|
||
|
/* Export Tasks
|
||
|
/* ----------------------------------------- */
|
||
|
|
||
|
exports.default = gulp.series(
|
||
|
gulp.parallel(css),
|
||
|
watchUpdates
|
||
|
);
|
||
|
exports.css = css;
|