Don't include web/compatibility.js in the output for gulp lib (PR 8120 follow-up)

First of all, `compatibility.js` is already available in `lib/shared/compatibility.js`. Second of all, as can be seen in 9142301f35 (diff-9432ebaa58e10ab02874fcb86f689caa), the `lib/web/compatibility.js` file cannot work since the `require` statement isn't compatible with the output of `gulp lib`.
This commit is contained in:
Jonas Jenwald 2017-03-04 18:26:24 +01:00
parent 4e3e97be8e
commit af44ef15f7

View File

@ -954,7 +954,11 @@ gulp.task('lib', ['buildnumber'], function () {
'src/shared/{compatibility,util}.js',
'src/{pdf,pdf.worker}.js',
], {base: 'src/'}),
gulp.src(['web/*.js', '!web/viewer.js'], {base: '.'}),
gulp.src([
'web/*.js',
'!web/viewer.js',
'!web/compatibility.js',
], {base: '.'}),
gulp.src('test/unit/*.js', {base: '.'}),
]).pipe(transform(preprocess))
.pipe(gulp.dest('build/lib/'));