Skip to content
Snippets Groups Projects
Commit 9d073ec9 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix gulp task webIntegrity

parent 357d4417
No related branches found
No related tags found
No related merge requests found
Pipeline #9505 failed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment