text: const CopyWebpackPlugin = require("copy-webpack-plugin");
  const path = require("path");
  const { merge } = require("webpack-merge");
  const common = require("./webpack.common");
  
  module.exports = merge(common, {
    mode: "production",
    output: {
      filename: "content.js",
      path: path.join(__dirname, "../dist"),
      clean: true,
    },
    plugins: [
      new CopyWebpackPlugin({
        patterns: [
          {
            from: "public",
            globOptions: {
              ignore: ["**/index.html"],
            },
          },
        ],
      }),
    ],
  });
  