text: const path = require('path');
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  
  module.exports = {
    // plugins: [new UglifyJsPlugin()],
    entry: path.join(__dirname, 'lib', 'index'),
    output: {
      filename: 'index.js',
      path: path.resolve(__dirname, 'dist')
    },
    module: {
      rules: [
        {
          test: /.jsx?$/,
          include: [path.resolve(__dirname, 'app')],
          exclude: [
            path.resolve(__dirname, 'node_modules'),
            path.resolve(__dirname, 'bower_components')
          ],
          loader: 'babel-loader',
          query: {
            presets: ['es2015']
          }
        }
      ]
    },
    resolve: {
      extensions: ['.json', '.js', '.jsx', '.css']
    },
    devtool: 'source-map',
    devServer: {
      publicPath: path.join('/dist/')
    }
  };
  