mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-06 08:07:20 +02:00
Fixed: Webpack worker loading with UrlBase
This commit is contained in:
parent
24f93ec3ef
commit
a931ac1022
@ -121,8 +121,7 @@ const config = {
|
|||||||
use: {
|
use: {
|
||||||
loader: 'worker-loader',
|
loader: 'worker-loader',
|
||||||
options: {
|
options: {
|
||||||
name: '[name].js',
|
name: '[name].js'
|
||||||
inline: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
/* eslint-disable-next-line no-undef */
|
import './preload.js';
|
||||||
__webpack_public_path__ = `${window.Radarr.urlBase}/`;
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import { createBrowserHistory } from 'history';
|
import { createBrowserHistory } from 'history';
|
||||||
|
2
frontend/src/preload.js
Normal file
2
frontend/src/preload.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/* eslint no-undef: 0 */
|
||||||
|
__webpack_public_path__ = `${window.Radarr.urlBase}/`;
|
Loading…
Reference in New Issue
Block a user