text: const path               = require('path');
  const webpack            = require('webpack');
  const CleanWebpackPlugin = require('clean-webpack-plugin');
  
  module.exports = {
    entry: {index: './src/index.js'},
  
    output: {
      path: path.resolve(__dirname, '../dist'),
      filename: 'H.js',
      libraryTarget: 'umd',
      library: 'H'
    },
  
    module: {
      rules: [
        {test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/},
      ]
    },
  
    devtool: '#source-map',
  
    plugins: [
      new CleanWebpackPlugin([path.join(__dirname, '../dist')],
        {root: path.join(__dirname, '../'), verbose: true, dry: false}),
      new webpack.LoaderOptionsPlugin({minimize: true, debug: false}),
      new webpack.DefinePlugin({'process.env': {NODE_ENV: '"production"'}}),
    ],
  
    mode: 'production'
  };