summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-04 15:24:10 +0300
committerAndrew Dolgov <[email protected]>2021-02-04 15:24:10 +0300
commite3322036c0d76f667bf35cdd0f82ab0163a68ea0 (patch)
tree3308d53b621578c7836d93a3e86f3621c1679b95 /gulpfile.js
parentddd1d03ff6ebab4b9dc8b4536b663cf03dc859cb (diff)
add workaround for gulp 4 not touching files on update
reader: style dropdowns better for dark mode
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 0db8a13..e99cddb 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,6 +5,7 @@ const minifyCSS = require('gulp-minify-css');
const concat = require('gulp-concat');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify-es').default;
+const touch = require('gulp-touch-fd');
function swallowError(error) {
console.log(error.toString())
@@ -26,7 +27,8 @@ gulp.task('minifyLibsJS', function(cb) {
.pipe(concat('app-libs.min.js'))
.pipe(uglify())
.on('error', swallowError)
- .pipe(gulp.dest('dist/'));
+ .pipe(gulp.dest('dist/'))
+ .pipe(touch());
cb();
});
@@ -44,7 +46,8 @@ gulp.task('minifyJS', function(cb) {
.pipe(concat('reader_iframe.min.js'))
.pipe(uglify())
.on('error', swallowError)
- .pipe(gulp.dest('dist/'));
+ .pipe(gulp.dest('dist/'))
+ .pipe(touch());
cb();
});
@@ -56,7 +59,8 @@ gulp.task('minifyCSS', function(cb) {
.pipe(minifyCSS())
.pipe(rename("app.min.css"))
.on('error', swallowError)
- .pipe(gulp.dest('dist/'));
+ .pipe(gulp.dest('dist/'))
+ .pipe(touch());
gulp
.src(['css/reader_iframe.less'])
@@ -64,7 +68,8 @@ gulp.task('minifyCSS', function(cb) {
.pipe(minifyCSS())
.pipe(rename("reader_iframe.min.css"))
.on('error', swallowError)
- .pipe(gulp.dest('dist/'));
+ .pipe(gulp.dest('dist/'))
+ .pipe(touch());
cb();
});