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({
              cleanAfterEveryBuildPatterns: ['dist']
       }),
       new HtmlWebpackPlugin({
         title: 'Production'
       })
     ],
     "module": {
          "rules": [
              {
                  "test": /\.(js|jsx)$/,
                  "exclude": /node_modules/,
                  "use": {
                      "loader": "babel-loader"
                  }
              },
              {
                  "test": /\.css$/,
                  "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": /\.html$/,
                  "use": [
                      {
                          "loader": "html-loader"
                      }
                  ]
              }
          ]
      },
     output: {
       filename: '[name].bundle.js',
       path: path.resolve(__dirname, 'dist')
     }
   };
  