text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      mode: 'development',
      entry: {
          index: './src/index.js',
      },
      devtool: 'inline-source-map',
  
      devServer: {
          contentBase: './dist',
      },
      plugins: [
          new HtmlWebpackPlugin({
              title: 'Pascal Triangle - Visual',
          }),
      ],
      output: {
          filename: '[name].bundle.js',
          path: path.resolve(__dirname, 'dist'),
          clean: true,
      },
      module: {
          rules: [
              {
                  test: /\.css$/i,
                  use: ['style-loader', 'css-loader'],
              },
              {
                  test: /\.s[ac]ss$/i,
                  use: [
                      // Creates `style` nodes from JS strings
                      'style-loader',
                      // Translates CSS into CommonJS
                      'css-loader',
                      // Compiles Sass to CSS
                      'sass-loader',
                  ],
              },
              {
                  test: /\.(png|woff|woff2|eot|ttf|svg)$/,
                  use: 'url-loader?limit=100000',
              },
          ],
      },
  };
  