text: const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  
  module.exports = {
      entry: './src/index.js',
      output: {
          library: ['ImgWithAspectRatio'],
          libraryTarget: "var",
          filename: './dist/img-with-aspect-ratio.min.js'
      },
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /(node_modules|bower_components)/,
                  use: {
                      loader: 'babel-loader',
                      options: {
                          presets: ['env']
                      }
                  }
              }
          ]
      },
      plugins: [
          new UglifyJSPlugin({
              comments: function () {
                  return false;
              }
          })
      ],
  };