diff options
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js index 573af0b..a4d8ca6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -26,11 +26,17 @@ const license = `/*! */\n` +const swallowError = function(error) { + console.log(error.toString()) + this.emit('end') +} + gulp.task('js', () => gulp.src(['./js/index.js']) .pipe(babel({ presets: ['@babel/preset-env'] })) .pipe(webpack({ mode: 'production' })) + .on('error', swallowError) .pipe(header(license, {pkg: pkg})) .pipe(rename('reveal.min.js')) .pipe(gulp.dest('./dist'))) |