From 9d073ec95f5ae018e9d9abbb706671f93e894043 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Fri, 14 Aug 2020 13:13:45 +0200
Subject: [PATCH] [fix] Fix gulp task webIntegrity

---
 gulpfile.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index d70691c76..2595cbdfb 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -570,7 +570,7 @@ function webUglify() {
   }
 }
 
-function webIntegrity(done) {
+function webIntegrity() {
   const targetPath = './dist/web/www';
 
   const enableIntegrity = argv.release || false;
@@ -579,8 +579,7 @@ function webIntegrity(done) {
     log(colors.green('Create index.integrity.html... '));
 
     // Process index.html
-    return gulp.series(
-      gulp.src(targetPath + '/index.html', {base: targetPath})
+    return gulp.src(targetPath + '/index.html', {base: targetPath})
 
       // Add an integrity hash
       .pipe(sriHash())
@@ -590,9 +589,7 @@ function webIntegrity(done) {
 
       gulp.src(targetPath + '/index.html', {base: targetPath})
         .pipe(rename({ extname: '.test.html' }))
-        .pipe(gulp.dest(targetPath))
-    )
-      .on('end', done);
+        .pipe(gulp.dest(targetPath));
   }
 
   if (done) done();
-- 
GitLab