mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Debugging stuff
This commit is contained in:
parent
7bb7560481
commit
ce2c3ad36e
5 changed files with 15 additions and 8 deletions
12
gulpfile.js
12
gulpfile.js
|
@ -116,12 +116,12 @@ const pipelineJavascript = lazypipe()
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.pipe(function () {
|
// .pipe(function () {
|
||||||
return terser({
|
// return terser({
|
||||||
keep_fnames: true,
|
// keep_fnames: true,
|
||||||
mangle: false
|
// mangle: false
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
.pipe(function () {
|
.pipe(function () {
|
||||||
return mode.development(sourcemaps.write('.'));
|
return mode.development(sourcemaps.write('.'));
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,5 +11,8 @@ function getConfig() {
|
||||||
export function enableMultiServer() {
|
export function enableMultiServer() {
|
||||||
return getConfig().then(config => {
|
return getConfig().then(config => {
|
||||||
return config.multiserver;
|
return config.multiserver;
|
||||||
|
}).catch(error => {
|
||||||
|
console.log("cannot get web config:", error);
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -709,6 +709,10 @@ var AppInfo = {};
|
||||||
onError: onRequireJsError
|
onError: onRequireJsError
|
||||||
});
|
});
|
||||||
|
|
||||||
|
require(["fetch"], function (fetch) {
|
||||||
|
console.debug("fetch is here", fetch);
|
||||||
|
});
|
||||||
|
|
||||||
require(["polyfill"]);
|
require(["polyfill"]);
|
||||||
require(["fast-text-encoding"]);
|
require(["fast-text-encoding"]);
|
||||||
require(["intersection-observer"]);
|
require(["intersection-observer"]);
|
||||||
|
|
|
@ -14,7 +14,7 @@ module.exports = merge(common, {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: /node_modules[\\/](?!query-string)/,
|
exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/,
|
||||||
loader: "babel-loader"
|
loader: "babel-loader"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ module.exports = merge(common, {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: /node_modules[\\/](?!query-string)/,
|
exclude: /node_modules[\\/](?!query-string|split-on-first|strict-uri-encode)/,
|
||||||
loader: "babel-loader"
|
loader: "babel-loader"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue