about summary refs log tree commit diff
path: root/app/javascript/packs/frontends/mastodon.js
blob: a983de36f7ba857602f37c007b9442cbf1aea652 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This file replaces `app/javascript/packs/application.js` for use
// with multiple frontends.

import loadPolyfills from '../../mastodon/load_polyfills';

// import default stylesheet with variables
require('font-awesome/css/font-awesome.css');
require('mastodon-application-style');

require.context('../../images/', true);

loadPolyfills().then(() => {
  require('../../mastodon/main').default();
}).catch(e => {
  console.error(e);
});