2022-04-17 21:59:56 -06:00
|
|
|
require('dotenv').config();
|
|
|
|
|
2022-04-17 16:54:45 -06:00
|
|
|
require('ignore-styles');
|
|
|
|
|
2022-04-15 09:28:11 -06:00
|
|
|
require('@babel/register')({
|
2022-04-19 18:21:16 -06:00
|
|
|
'presets': [
|
2022-04-28 09:15:16 -06:00
|
|
|
['@babel/preset-env', {'targets': {'node': 'current'}}],
|
2022-04-22 09:00:14 -06:00
|
|
|
'@babel/preset-react',
|
2022-04-25 17:28:32 -06:00
|
|
|
'@babel/preset-typescript',
|
2022-04-19 18:21:16 -06:00
|
|
|
]
|
2022-04-15 09:28:11 -06:00
|
|
|
});
|
|
|
|
|
2022-04-17 22:16:59 -06:00
|
|
|
require('asset-require-hook')({
|
2022-04-19 18:21:16 -06:00
|
|
|
extensions: [
|
|
|
|
// images
|
|
|
|
'jpg',
|
|
|
|
'png',
|
|
|
|
'svg',
|
|
|
|
'gif',
|
2022-04-26 20:12:45 -06:00
|
|
|
'ico',
|
2022-04-19 18:21:16 -06:00
|
|
|
// videos
|
|
|
|
'mp4',
|
|
|
|
'avi',
|
2022-04-26 20:12:45 -06:00
|
|
|
// files
|
|
|
|
'pdf',
|
|
|
|
],
|
|
|
|
name: '/assets/media/[name].[ext]',
|
|
|
|
});
|
|
|
|
|
|
|
|
require('asset-require-hook')({
|
|
|
|
extensions: [
|
2022-04-19 18:21:16 -06:00
|
|
|
// typography
|
|
|
|
'ttf',
|
|
|
|
'otf',
|
|
|
|
'eot',
|
2022-04-26 20:12:45 -06:00
|
|
|
'woff',
|
|
|
|
'woff2',
|
2022-04-19 18:21:16 -06:00
|
|
|
],
|
2022-04-26 20:12:45 -06:00
|
|
|
name: '/assets/fonts/[name].[ext]',
|
2022-04-17 22:16:59 -06:00
|
|
|
});
|
|
|
|
|
2022-04-19 18:21:16 -06:00
|
|
|
require('./server');
|