text: var webpack = require("webpack");
  module.exports = {
    entry: {
      validator: "./src/validate.js"
    },
    output: {
      path: __dirname + "/dist/",
      filename: "[name].js"
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: "babel-loader",
            options: {
              presets: ["env"],
              plugins: ["transform-object-rest-spread"]
            }
          }
        }
      ]
    },
    plugins: [
      new webpack.optimize.UglifyJsPlugin()
    ]
  }
  