summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-10-08 16:05:18 +0300
committerAndrew Dolgov <[email protected]>2020-10-08 16:05:18 +0300
commitcf1d643376d4f18cd5cfa9075a21b11fb5713daf (patch)
tree15eedecef0f052368709dc74c5ee4c5eb41d9664 /gulpfile.js
parent0add899fa4e15e1f0a872f03805a63886e999ca7 (diff)
some more gulp-related stuff
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js30
1 files changed, 21 insertions, 9 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 6f02804..5249043 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -17,26 +17,38 @@ gulp.task('minifyLibsJS', function(cb) {
.src([
'lib/bootstrap/v3/js/jquery.js',
'lib/bootstrap/v3/js/bootstrap.min.js',
+ 'lib/zip.min.js',
'lib/epub.js',
'lib/localforage.min.js',
'lib/jquery.mobile-events.min.js',
'lib/hyphen/*.js',
- 'lib/promise.js',
- 'lib/fetch.js',
- 'lib/zip.min.js'])
- .pipe(concat('app-libs.min.js'))
- .pipe(uglify())
- .on('error', swallowError)
+ 'lib/holder.min.js'])
+ .pipe(concat('app-libs.min.js'))
+ .pipe(uglify())
+ .on('error', swallowError)
.pipe(gulp.dest('dist/'));
cb();
});
-
gulp.task('minifyJS', function(cb) {
gulp
- .src('js/*.js')
- .pipe(concat('app.min.js'))
+ .src('js/app.js')
+ .pipe(concat('app.min.js'))
+ .pipe(uglify())
+ .on('error', swallowError)
+ .pipe(gulp.dest('dist/'));
+
+ gulp
+ .src('js/reader.js')
+ .pipe(concat('reader.min.js'))
+ .pipe(uglify())
+ .on('error', swallowError)
+ .pipe(gulp.dest('dist/'));
+
+ gulp
+ .src('js/reader_iframe.js')
+ .pipe(concat('reader_iframe.min.js'))
.pipe(uglify())
.on('error', swallowError)
.pipe(gulp.dest('dist/'));