const { dest, dev, entry } = require('../lib/config.js'); module.exports = { dev, client: { entry: () => { return { main: [ entry.client, // workaround for https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/456 'style-loader/lib/addStyles', 'css-loader/lib/css-base' ] }; }, output: () => { return { path: `${dest}/client`, filename: '[name].[hash].js', chunkFilename: '[name].[id].[hash].js', publicPath: '/client/' }; } }, server: { entry: () => { return { main: entry.server }; }, output: () => { return { path: `${dest}/server`, filename: '[name].[hash].js', chunkFilename: '[name].[id].[hash].js', libraryTarget: 'commonjs2' }; } } };