1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Manually fix remaining ESLint errors

This commit is contained in:
Wojciech Maj 2018-12-06 14:02:39 +01:00
parent ef1f255649
commit 9e3f7ac7fa
9 changed files with 42 additions and 21 deletions

View file

@ -24,9 +24,11 @@ gulp.task('build-worker', function() {
return browserify(workerSrc, { output: TMP_FILE_PREFIX + 'worker.tmp', })
.bundle()
.pipe(source(TMP_FILE_PREFIX + 'worker.tmp'))
.pipe(streamify(uglify({ compress: {
sequences: false, // Chrome has issue with the generated code if true
}, })))
.pipe(streamify(uglify({
compress: {
sequences: false, // Chrome has issue with the generated code if true
},
})))
.pipe(rename('pdf.worker.bundle.js'))
.pipe(gulp.dest(OUTPUT_PATH));
});