text: // Generated using webpack-cli https://github.com/webpack/webpack-cli
  
  const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  const stylesHandler = 'style-loader';
  
  module.exports = {
      mode: 'none',
      entry: './src/index.js',
      output: {
          path: path.resolve(__dirname, 'dist'),
      },
      devServer: {
          static: {
              directory: path.join(__dirname, 'public'),
          },
          open: true,
          host: 'localhost',
          port: 8080,
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: './public/index.html',
          }),
      ],
      module: {
          rules: [
              {
                  test: /\.(js|jsx)$/i,
                  loader: 'babel-loader',
              },
              {
                  test: /\.css$/i,
                  use: [stylesHandler, 'css-loader', 'postcss-loader'],
              },
              {
                  test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,
                  type: 'asset',
              },
          ],
      },
  };
  