mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
ADDED standalone.js script to inject standalone mode in dev server
This commit is contained in:
parent
61ce341e6f
commit
4a0cfb5be9
3 changed files with 6 additions and 12 deletions
|
@ -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
4
src/standalone.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
(function() {
|
||||
"use strict";
|
||||
window.appMode='standalone';
|
||||
})();
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue