webpack/dev.server.config.js
/* eslint-disable import/no-extraneous-dependencies */
const { serverConfiguration } = require('universal-webpack');
const webpack = require('webpack');
const baseDev = require('./dev.base.config');
const settings = require('./universal-webpack-settings.json');
const config = serverConfiguration(baseDev, settings);
config.plugins.push(
new webpack.DefinePlugin({
__CLIENT__: false,
__DEVELOPMENT__: false,
__DEVTOOLS__: false,
__DISABLE_SSR__: false,
__SERVER__: true,
}),
);
module.exports = config;