mirror of https://github.com/mastodon/mastodon
[Glitch] Change how CDN_HOST is passed down to make assets build reproducible
Port 4c45b43cb8
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
pull/16342/head
parent
842c048c6b
commit
813c84cd6c
@ -1,2 +1,3 @@
|
||||
import 'packs/public-path';
|
||||
import './settings';
|
||||
import './two_factor_authentication';
|
||||
|
@ -1,5 +1,6 @@
|
||||
// This file will be loaded on all pages, regardless of theme.
|
||||
|
||||
import 'packs/public-path';
|
||||
import 'font-awesome/css/font-awesome.css';
|
||||
|
||||
require.context('../images/', true);
|
||||
|
@ -0,0 +1,10 @@
|
||||
import ready from './ready';
|
||||
|
||||
export let assetHost = '';
|
||||
|
||||
ready(() => {
|
||||
const cdnHost = document.querySelector('meta[name=cdn-host]');
|
||||
if (cdnHost) {
|
||||
assetHost = cdnHost.content || '';
|
||||
}
|
||||
});
|
@ -1 +1,2 @@
|
||||
import './public-path';
|
||||
import 'styles/application.scss';
|
||||
|
Loading…
Reference in New Issue