text: const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin");
  
  module.exports = {
    entry: "./index.js",
    output: {
      filename: "bundle.js"
    },
    module: {
      rules: [{
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader',
            options: {
              presets: ['env']
            }
          }
        },
        /* {
           test: /\.css$/,
           use: ExtractTextPlugin.extract({
             fallback: 'style-loader',
             use: [
               {
                 loader: 'css-loader',
                 options: {
                   minimize: true
                 }
               }
             ]
           })
         },*/
      ]
    },
    plugins: [
      /*new ExtractTextPlugin('styles.css'),
      new OptimizeCssAssetsPlugin({
        cssProcessorOptions: { discardComments: { removeAll: true } }
      }),*/
      new UglifyJSPlugin(),
      new HtmlWebpackPlugin({
        minify: {
          removeAttributeQuotes: true
        },
        hash: true,
        template: './index.html'
      }),
    ]
  };