import ExtractTextPlugin from "extract-text-webpack-plugin";
import externals from 'webpack-node-externals';
import path from  'path';

export default [
  {
    entry: './client',
    output: {
      path: path.resolve('dist'),
      filename: 'client.js'
    },
    module: {
      rules: [
        {
          test: /\.less$/,
          use: ExtractTextPlugin.extract({
            fallback: 'style-loader',
            use: ['css-loader', 'less-loader']
          })
        }
      ]
    },
    plugins: [
      new ExtractTextPlugin('client.css')
    ]
  },
  {
    entry: {
      server: './server',
      loader: './server/loader'
    },
    output: {
      path: path.resolve('dist'),
      filename: '[name].js'
    },
    target: 'node',
    externals: externals()
  }
];

@@ -252,24 +252,57 @@
 .js'%0A    %7D,%0A
+    devtool: 'cheap-source-map',%0A
     module: 
@@ -750,24 +750,57 @@
 .js'%0A    %7D,%0A
+    devtool: 'cheap-source-map',%0A
     target: 

Use source maps