text:  const path = require('path');
   const { CleanWebpackPlugin } = require('clean-webpack-plugin');
   const HtmlWebpackPlugin = require('html-webpack-plugin');
  
    module.exports = {
       entry: {
        app: './src/index.js',
     },
      plugins: [
         // new CleanWebpackPlugin(['dist/*']) for < v2 versions of CleanWebpackPlugin
         new CleanWebpackPlugin(),
         new HtmlWebpackPlugin({
           title: 'Production',
         }),
       ],
       output: {
         path: path.resolve(__dirname, 'dist'),
      },
     };