mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Only inject appLoader if using standalone mode
This commit is contained in:
parent
ba57841ab0
commit
d28b050f51
1 changed files with 9 additions and 3 deletions
12
gulpfile.js
12
gulpfile.js
|
@ -183,6 +183,12 @@ function copy(query) {
|
||||||
.pipe(browserSync.stream());
|
.pipe(browserSync.stream());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyIndex() {
|
||||||
|
return src(options.injectBundle.query, { base: './src/' })
|
||||||
|
.pipe(dest('dist/'))
|
||||||
|
.pipe(browserSync.stream());
|
||||||
|
}
|
||||||
|
|
||||||
function injectBundle() {
|
function injectBundle() {
|
||||||
return src(options.injectBundle.query, { base: './src/' })
|
return src(options.injectBundle.query, { base: './src/' })
|
||||||
.pipe(inject(
|
.pipe(inject(
|
||||||
|
@ -193,9 +199,9 @@ function injectBundle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function build(standalone) {
|
function build(standalone) {
|
||||||
return series(clean, parallel(javascript, apploader(standalone), webpack, css, html, images, copy), injectBundle);
|
return series(clean, parallel(javascript, apploader(standalone), webpack, css, html, images, copy));
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.default = build(false);
|
exports.default = series(build(false), copyIndex);
|
||||||
exports.standalone = build(true);
|
exports.standalone = series(build(true), injectBundle);
|
||||||
exports.serve = series(exports.standalone, serve);
|
exports.serve = series(exports.standalone, serve);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue