1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Clean gulpfile

This commit is contained in:
MrTimscampi 2020-04-06 23:44:51 +02:00
parent abb8d56db3
commit 440ae17e7d

View file

@ -62,7 +62,7 @@ function serve() {
port: 8080 port: 8080
}); });
let events = ['add', 'change']; const events = ['add', 'change'];
watch(options.javascript.query).on('all', function (event, path) { watch(options.javascript.query).on('all', function (event, path) {
if (events.includes(event)) { if (events.includes(event)) {
@ -105,7 +105,7 @@ function clean() {
return del(['dist/']); return del(['dist/']);
} }
let pipelineJavascript = lazypipe() const pipelineJavascript = lazypipe()
.pipe(function () { .pipe(function () {
return mode.development(sourcemaps.init({ loadMaps: true })); return mode.development(sourcemaps.init({ loadMaps: true }));
}) })
@ -140,7 +140,7 @@ function apploader(standalone) {
.pipe(pipelineJavascript()) .pipe(pipelineJavascript())
.pipe(dest('dist/')) .pipe(dest('dist/'))
.pipe(browserSync.stream()); .pipe(browserSync.stream());
}; }
task.displayName = 'apploader'; task.displayName = 'apploader';