1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Maintenance: Fixing build issues for the bundled browser extension.

This commit is contained in:
SirStendec 2023-09-07 14:05:10 -04:00
parent f88f859dcf
commit 459e77a2a3
4 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@
return;
const HOST = location.hostname,
SERVER = browser.runtime.getURL("web/"),
SERVER = browser.runtime.getURL("web"),
script = document.createElement('script');
let FLAVOR =
@ -22,5 +22,6 @@
script.crossOrigin = 'anonymous';
script.src = `${SERVER}/${FLAVOR}.js?_=${Date.now()}`;
script.dataset.path = SERVER;
document.head.appendChild(script);
})();

View file

@ -21,8 +21,6 @@ import {has} from 'utilities/object';
import MAIN_URL from 'site/styles/main.scss';
console.log('!!!!!!!! MAIN_URL: !!!!!!!!!', MAIN_URL);
// ============================================================================
// The Site

View file

@ -6,8 +6,9 @@ import {make_enum} from 'utilities/object';
export const DEBUG = localStorage.ffzDebugMode === 'true' && document.body.classList.contains('ffz-dev');
export const EXTENSION = !!__extension__;
export const SERVER = DEBUG ? '//localhost:8000' : 'https://cdn.frankerfacez.com';
export const SERVER_OR_EXT = EXTENSION
? __extension__
? __webpack_public_path__
: `${SERVER}/script`;
export const CLIENT_ID = 'a3bc9znoz6vi8ozsoca0inlcr4fcvkl';

View file

@ -175,7 +175,9 @@ const config = {
include: /src/,
type: 'asset/resource',
generator: {
filename: '[name].[contenthash:8].json'
filename: (FOR_EXTENSION || DEV_BUILD)
? '[name].json'
: '[name].[contenthash:8].json'
}
},
{