UNPKG

665 BPlain TextView Raw
1import * as webpack from 'webpack';
2import sharedConfig = require('./config');
3const config = { ...sharedConfig };
4
5const root = config.entry;
6config.entry = root + '/src/server-glue/server';
7
8// Disable node express and load express-emulator instead
9config.externals['express'] = false;
10if (config.resolve.alias == null) {
11 config.resolve.alias = {};
12}
13config.resolve.alias.express = root + '/src/express-emulator/express';
14
15config.plugins = config.plugins.concat(
16 new webpack.DefinePlugin({
17 'process.browser': true,
18 'process.env.CONFIG_LOADER_DISABLED': true,
19 'process.env.DEBUG': true,
20 'process.env.SBVR_SERVER_ENABLED': true,
21 }),
22);
23
24export = config;