add workaround for gulp4 not updating file timestamps on build

This commit is contained in:
Andrew Dolgov 2021-02-04 15:30:28 +03:00
parent 6d8f2221b8
commit b4cbc792cc
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Less configuration
const gulp = require('gulp');
const less = require('gulp-less');
const touch = require('gulp-touch-fd');
function swallowError(error) {
console.log(error.toString())
@ -18,7 +19,7 @@ gulp.task('less', function(cb) {
gulp.dest(function(f) {
return f.base;
})
);
).pipe(touch());
cb();
});

View File

@ -6,6 +6,7 @@
"eslint": "^7.9.0",
"gulp": "^4.0.2",
"gulp-less": "^4.0.1",
"gulp-touch-fd": "^2.0.0",
"less": "^3.12.2"
}
}