const webpack = require('webpack');
const path = require('path');
const ROOT_PATH = path.resolve(__dirname);

module.exports = {
  devtool: 'cheap-module-source-map',
  entry: {
      './test/dist/index': './test/index.tsx'
  },
  output: {
    filename: '[name].js'
  },
  resolve: {
    extensions: ['.ts', '.tsx', '.js', '.jsx'],
    alias: {
      ui: path.resolve(ROOT_PATH, 'src/'),
      icons:path.resolve(ROOT_PATH, 'src/theming/icons')
    },
  },
  module: {
    rules: [
        { test: /\.tsx?|.ts?$/, loader:  'ts-loader' },
      { test: /\.jsx?$/, exclude: /node_modules/, loaders: ['babel-loader'], include: path.join(__dirname, 'src') },
      { test: /\.css$/, loader: 'style-loader!css-loader?url=false' },
      { test: /\.json$/, loader: 'json-loader' },
      { test: /\.md$/, loader: 'html!markdown-loader' },
      { test: /\.svg$/, loader: 'svg-inline-loader' },
      {
          test: /\.(eot|ttf|woff|woff2)$/,
          loader: 'file-loader'
      }
    ]
  },
  plugins: [
      new webpack.optimize.UglifyJsPlugin({
          compress: { warnings: true }
      })
  ]
};
@@ -1,40 +1,4 @@
-const webpack = require('webpack');%0A
 cons
@@ -970,94 +970,8 @@
     
- new webpack.optimize.UglifyJsPlugin(%7B%0A          compress: %7B warnings: true %7D%0A      %7D)
 %0A  %5D

remove plugin