text: const path = require("path");
  const webpack = require("webpack");
  const CopyPlugin = require("copy-webpack-plugin");
  const Dotenv = require('dotenv-webpack');
  
  module.exports = {
    entry: __dirname + '/src/index.js',
    output: {
      path: __dirname + '/dist',
      publicPath: '/',
      filename: 'main.js'
    },
    module: {
      rules: [
        {
          test: /\.css$/,
          use: ["style-loader", "css-loader"],
        },
        {
          test: /\.(png|svg|jpg|gif)$/,
          use: ["file-loader"],
        },
        {
          test: /\.(woff|woff2|eot|ttf|otf)$/,
          use: ["file-loader"],
        },
      ],
    },
    plugins: [
      new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: 'jquery',
      }),
      new CopyPlugin({
        patterns: [
          { from: 'index.html', to: '.' },
          { from: 'radius-checker.png', to: '.' },
          { from: 'assets', to: './assets' },
        ],
      }),
      // new Dotenv()   <!-- add this for hiding secrets in a .env file
    ],
    devServer: {
      port: 8085,
      contentBase: path.join(__dirname, 'dist')
    },
  
  };
  