UNPKG

514 BPlain TextView Raw
1import * as webpack from 'webpack';
2import sharedConfig = require('./config');
3const config = { ...sharedConfig };
4
5config.entry += '/src/server-glue/module';
6config.plugins = config.plugins.concat(
7 new webpack.DefinePlugin({
8 'process.browser': false,
9
10 'process.env.CONFIG_LOADER_DISABLED': false,
11 'process.env.SBVR_SERVER_ENABLED': false,
12 }),
13 // When we're compiling the module build we want to always ignore the server build file
14 new webpack.IgnorePlugin(/server/, /server-glue/),
15);
16
17export = config;