text: const webpack = require('webpack');
  const path = require('path');
  const CleanWebpackPlugin = require('clean-webpack-plugin');
  const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
  
  module.exports = {
    entry: {
      'maker-link': './src/index.js',
      'maker-link.min': './src/index.js'
    },
    // devtool: 'source-map',
    output: {
      libraryTarget: 'umd',
      umdNamedDefine: true,
      filename: '[name].js',
      path: path.resolve(__dirname, 'dist'),
    },
    optimization: {
      minimize: true,
      minimizer: [
        new UglifyJsPlugin({
          include: /\.min\.js$/
        })
      ]
    },
    plugins: [
      new CleanWebpackPlugin(['dist']),
    ]
  };
  