text: const path = require('path');
  const webpack = require('webpack')
  
  module.exports = {
    entry: './src/index.js',
    output: {
      filename: 'main.js',
      path: path.resolve(__dirname, 'dist'),
    },
    module: {
      rules: [
      {
        test: /\.m?js$/,
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['@babel/preset-env']
          }
        }
      },
      {
          test: /\.html$/i,
          loader: 'html-loader',
        },
         {
          test: /\.css$/i,
          use: ['style-loader', 'css-loader'],
        },
    ]
    },
    plugins: [
          new webpack.ProvidePlugin({
          $: 'jquery',
          jQuery: 'jquery'
        })
      ],
  };