victorpopkov/universal-redux

View on GitHub
webpack/dev.server.config.js

Summary

Maintainability
A
40 mins
Test Coverage
/* 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;