ADDED standalone.js script to inject standalone mode in dev server
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user