ADDED standalone.js script to inject standalone mode in dev server

This commit is contained in:
ringmatter@fastmail.com 2019-12-01 09:14:10 +01:00
parent 61ce341e6f
commit 4a0cfb5be9
3 changed files with 6 additions and 12 deletions

View file

@ -63,6 +63,3 @@ Jellyfin Web is the frontend used for most of the clients available for end user
yarn serve
```
The webpack dev server will proxy backend requests to http://localhost:8096 - so
you'll need to start a jellyfin backend either via docker or by running
the application in the jellyfin main repository.

4
src/standalone.js Normal file
View file

@ -0,0 +1,4 @@
(function() {
"use strict";
window.appMode='standalone';
})();

View file

@ -30,14 +30,7 @@ module.exports = merge(common, {
}),
new ConcatPlugin({
name: 'scripts/apploader.js',
filesToConcat: ['./scripts/apploader.js']
filesToConcat: ['./standalone.js', './scripts/apploader.js']
})
],
devServer: {
proxy: {
"!/**/*.html" : "http://localhost:8096",
"!/**/*.css" : "http://localhost:8086",
"!/**/*.js" : "http://localhost:8086"
}
}
]
});