return { name: 'server', cache: ifNotProduction(), devtool: ifProduction('hidden-source-map', 'cheap-module-eval-source-map'), entry: (0, _webpackConfigUtils.removeEmpty)([ifNotProduction('webpack/hot/poll?1000'), (0, _path.resolve)('./src/server/index.js')]), target: 'node', watch: ifNotProduction(), stats: ifProduction('errors-only', 'minimal'), node: { whitelist: ['webpack/hot/poll?1000'] })], plugins: (0, _webpackConfigUtils.removeEmpty)([new _progressBarWebpackPlugin.default(), new _webpack.default.IgnorePlugin(/\.(scss|css|less)$/), new _webpack.default.NamedModulesPlugin(), ifNotProduction(new _cleanWebpackPlugin.default('./dist/')), ifNotProduction(new _startServerWebpackPlugin.default('server.js')), ifNotProduction(new _webpack.default.HotModuleReplacementPlugin()), ifNotProduction(new _webpack.default.NoEmitOnErrorsPlugin())]) };
return { name: 'client', cache: ifNotProduction(), devtool: ifNotProduction('cheap-module-eval-source-map'), entry: [(0, _path.resolve)('./src/client/index.js')], target: 'web', ifProduction(new _webpack.default.optimize.ModuleConcatenationPlugin()), // scope hoisting ifProduction(new _webpack.default.HashedModuleIdsPlugin()), // scope hoisting ifProduction(new _lodashWebpackPlugin.default()), ifNotProduction(new _webpack.default.HotModuleReplacementPlugin()), ifNotProduction(new _webpack.default.NamedModulesPlugin()), ifNotProduction(new _webpack.default.NoEmitOnErrorsPlugin())]) };
return { name: 'server', cache: ifNotProduction(), devtool: ifProduction('hidden-source-map', 'cheap-module-eval-source-map'), entry: (0, _webpackConfigUtils.removeEmpty)([ifNotProduction('webpack/hot/poll?1000'), (0, _path.resolve)('./src/server/index.js')]), target: 'node', watch: ifNotProduction(), stats: ifProduction('errors-only', 'minimal'), node: { whitelist: ['webpack/hot/poll?1000'] })], plugins: (0, _webpackConfigUtils.removeEmpty)([new _progressBarWebpackPlugin.default(), new _webpack.default.IgnorePlugin(/\.(scss|css|less)$/), new _webpack.default.NamedModulesPlugin(), ifNotProduction(new _cleanWebpackPlugin.default('./dist/')), ifNotProduction(new _startServerWebpackPlugin.default('server.js')), ifNotProduction(new _webpack.default.HotModuleReplacementPlugin()), ifNotProduction(new _webpack.default.NoEmitOnErrorsPlugin())]) };
return { name: 'client', cache: ifNotProduction(), devtool: ifNotProduction('cheap-module-eval-source-map'), entry: [(0, _path.resolve)('./src/client/index.js')], target: 'web', ifProduction(new _webpack.default.optimize.ModuleConcatenationPlugin()), // scope hoisting ifProduction(new _webpack.default.HashedModuleIdsPlugin()), // scope hoisting ifProduction(new _lodashWebpackPlugin.default()), ifNotProduction(new _webpack.default.HotModuleReplacementPlugin()), ifNotProduction(new _webpack.default.NamedModulesPlugin()), ifNotProduction(new _webpack.default.NoEmitOnErrorsPlugin())]) };