comments and compress in gulpfile

jschan
Thomas Lynch 3 years ago
parent 0b7dd08773
commit a2163d8aed
No known key found for this signature in database
GPG Key ID: 36A72F7C62CF8480
  1. 3
      gulp/res/js/watchlist.js
  2. 4
      gulpfile.js

@ -1,7 +1,7 @@
class ThreadWatcher {
//todo:
//- dont increase unread count when refreshing if already have a thread opened
//- some way to minimize the watcher, good for mobile. <details>+<summary>?
//- notifications, probably in fetchthread()
//- try and deal with having more tabs open running refresh more often than necessary. maybe for this it has to
// use a serviceworker so it only has 1 thread background fetching (problems: needs https so maybe wont work on
@ -18,6 +18,7 @@ class ThreadWatcher {
if (threadMatch && threadMatch.groups) {
const key = `${threadMatch.groups.threadBoard}-${threadMatch.groups.threadId}`;
const data = this.watchListMap.get(key);
//window.addEventListener('scroll', () => { /**/ }); //this is not ideal
if (data) {
data.unread = 0;
data.updatedDate = new Date();

@ -428,7 +428,7 @@ const extraLocals = ${JSON.stringify({ meta: config.get.meta, reverseImageLinksU
`!${paths.scripts.src}/timezone.js`,
])
.pipe(concat('all.js'))
// .pipe(uglify({compress:false}))
.pipe(uglify({compress:false}))
.pipe(gulp.dest(paths.scripts.dest));
return gulp.src([
`${paths.scripts.src}/saveoverboard.js`,
@ -442,7 +442,7 @@ const extraLocals = ${JSON.stringify({ meta: config.get.meta, reverseImageLinksU
`${paths.scripts.src}/time.js`,
])
.pipe(concat('render.js'))
// .pipe(uglify({compress:false}))
.pipe(uglify({compress:false}))
.pipe(gulp.dest(paths.scripts.dest));
}

Loading…
Cancel
Save