diff options
author | Andrew Dolgov <[email protected]> | 2021-02-04 15:30:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-04 15:30:28 +0300 |
commit | b4cbc792cc5fbbd5356f91038bf6cf5e67a19e42 (patch) | |
tree | 63f051b06fa7e2bb3c80ce7ad33558634a8b078b | |
parent | 6d8f2221b82b6a31becbeed8baf5e05ad9e053fe (diff) |
add workaround for gulp4 not updating file timestamps on build
-rw-r--r-- | gulpfile.js | 3 | ||||
-rw-r--r-- | package.json | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index e04cc85d0..ca766dcce 100644 --- a/gulpfile.js +++ b/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(); }); diff --git a/package.json b/package.json index d20c66112..b98208b66 100644 --- a/package.json +++ b/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" } } |