2022-04-17 21:59:56 -06:00
|
|
|
require('dotenv').config();
|
|
|
|
|
2022-04-17 16:54:45 -06:00
|
|
|
require('ignore-styles');
|
|
|
|
|
2022-04-22 09:00:14 -06:00
|
|
|
//require('webpack-node-externals')();
|
|
|
|
|
2022-04-15 09:28:11 -06:00
|
|
|
require('@babel/register')({
|
2022-04-19 18:21:16 -06:00
|
|
|
'presets': [
|
|
|
|
'@babel/preset-env',
|
2022-04-22 09:00:14 -06:00
|
|
|
'@babel/preset-react',
|
|
|
|
"@babel/preset-typescript",
|
|
|
|
// '@babel/preset-flow',
|
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',
|
|
|
|
// videos
|
|
|
|
'mp4',
|
|
|
|
'avi',
|
|
|
|
// typography
|
|
|
|
'ttf',
|
|
|
|
'otf',
|
|
|
|
'eot',
|
|
|
|
// files
|
|
|
|
'pdf'
|
|
|
|
],
|
|
|
|
name: '/assets/[hash].[ext]',
|
2022-04-17 22:16:59 -06:00
|
|
|
});
|
|
|
|
|
2022-04-19 18:21:16 -06:00
|
|
|
require('./server');
|