Fixed: Webpack worker loading with UrlBase

This commit is contained in:
ta264 2019-12-09 21:23:32 +00:00 committed by Qstick
parent 24f93ec3ef
commit a931ac1022
3 changed files with 4 additions and 5 deletions

View File

@ -121,8 +121,7 @@ const config = {
use: {
loader: 'worker-loader',
options: {
name: '[name].js',
inline: true
name: '[name].js'
}
}
},

View File

@ -1,6 +1,4 @@
/* eslint-disable-next-line no-undef */
__webpack_public_path__ = `${window.Radarr.urlBase}/`;
import './preload.js';
import React from 'react';
import { render } from 'react-dom';
import { createBrowserHistory } from 'history';

2
frontend/src/preload.js Normal file
View File

@ -0,0 +1,2 @@
/* eslint no-undef: 0 */
__webpack_public_path__ = `${window.Radarr.urlBase}/`;