diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-03-16 14:30:36 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-03-16 14:30:36 +0100 |
commit | 6ff4e9306c8f7947bd2eafa8f6ef31a83d3e8652 (patch) | |
tree | bf658b7ced967e4dc161f36edb528742bc974b26 /gulpfile.js | |
parent | c50ec00419d8abfcfb1e5a2075f28d87fb83232b (diff) | |
download | fosdem-2021-minimalism-presentation-6ff4e9306c8f7947bd2eafa8f6ef31a83d3e8652.tar fosdem-2021-minimalism-presentation-6ff4e9306c8f7947bd2eafa8f6ef31a83d3e8652.tar.gz |
move progress bar to new module
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'))) |