forked from Snck3rs/contao-leaflet-maps
Fix gulp watch task.
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@@ -1,4 +1,4 @@
|
|||||||
const { series, src, watch, dest} = require('gulp');
|
const { series, src, watch, dest, parallel} = require('gulp');
|
||||||
const del = require('del');
|
const del = require('del');
|
||||||
const uglify = require('gulp-uglify');
|
const uglify = require('gulp-uglify');
|
||||||
const concat = require('gulp-concat');
|
const concat = require('gulp-concat');
|
||||||
@@ -21,7 +21,14 @@ const buildTask = series(cleanTask, function (cb) {
|
|||||||
.pipe(dest(paths.dest));
|
.pipe(dest(paths.dest));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function watchTask () {
|
||||||
|
watch(
|
||||||
|
paths.scripts,
|
||||||
|
buildTask
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
exports.clean = cleanTask;
|
exports.clean = cleanTask;
|
||||||
exports.watch = watch(paths.scripts, buildTask);
|
exports.watch = watchTask;
|
||||||
exports.build = buildTask;
|
exports.build = buildTask;
|
||||||
exports.default = buildTask;
|
exports.default = buildTask;
|
||||||
|
|||||||
Reference in New Issue
Block a user