From b4cbc792cc5fbbd5356f91038bf6cf5e67a19e42 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Thu, 4 Feb 2021 15:30:28 +0300
Subject: [PATCH] add workaround for gulp4 not updating file timestamps on
 build

---
 gulpfile.js  | 3 ++-
 package.json | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

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"
   }
 }
-- 
GitLab