Browse Source

add workaround for gulp4 not updating file timestamps on build

wip-php8
Andrew Dolgov 3 months ago
parent
commit
b4cbc792cc
  1. 3
      gulpfile.js
  2. 1
      package.json

3
gulpfile.js

@ -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();
});

1
package.json

@ -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"
}
}
Loading…
Cancel
Save