require('babel-core/register');
require('dotenv').load();

const serverConfig = require('./config');

// To ignore webpack custom loaders on server.
serverConfig.webpackStylesExtensions.forEach((ext) => {
  require.extensions[`.${ext}`] = () => {};
});

require('./main');

require('babel-core/register');

const path = require('path');
require('dotenv').load({ path: path.resolve(__dirname, '../.env') });

const serverConfig = require('./config');

// To ignore webpack custom loaders on server.
serverConfig.webpackStylesExtensions.forEach((ext) => {
  require.extensions[`.${ext}`] = () => {};
});

require('./main');

Use absolute path to .env file just in case
Use absolute path to .env file just in case
