text: // production config
  const merge          = require('webpack-merge');
  const webpack        = require('webpack');
  const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  const {resolve}      = require('path');
  
  const commonConfig = require('./webpack.config.common');
  
  module.exports = merge(commonConfig, {
    entry: './index.tsx',
    output: {
      filename: 'bundle.min.js',
      path: resolve(__dirname, 'dist'),
      publicPath: '/',
    },
    devtool: 'source-map',
    plugins: [
      new webpack.LoaderOptionsPlugin({
        debug: false,
        minimize: true,
      }),
      new UglifyJSPlugin({
        sourceMap: true,
      }),
    ],
  });
  