text: const HtmlWebpackPlugin = require("html-webpack-plugin");
  const MiniCssExtractPlugin = require("mini-css-extract-plugin");
  
  module.exports = {
      entry: {
          index: './src/index.js',
          player: './src/player.js',
      },
  
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: [
                      {
                          loader: "babel-loader"
                      }
                  ]
              },
              {
                  test: /\.html$/,
                  use: [
                      {
                          loader: "html-loader",
                          options: { minimize: true }
                      }
                  ]
              },
              {
                  test: /\.(png|svg|jpg|gif)$/,
                  use: [
                      "file-loader"
                  ]
              },
              {
                  test: /\.scss$/,
                  use: ["style-loader", "css-loader", "sass-loader"]
              }
          ]
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: "./src/index.html",
              filename: "./index.html",
              chunks: ['main']
          }),
          new HtmlWebpackPlugin({
              template: "./src/player.html",
              filename: "./player.html",
              chunks: ['player']
          }),
          new MiniCssExtractPlugin({
              filename: "[name].css",
              chunkFilename: "[id].css"
          })
      ]
  }