mirror of
https://github.com/Noratrieb/slides.git
synced 2026-03-14 21:06:04 +01:00
move progress bar to new module
This commit is contained in:
parent
c50ec00419
commit
6ff4e9306c
6 changed files with 125 additions and 63 deletions
|
|
@ -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')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue