text: 
  const path = require('path');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin')
  
  module.exports = {
      module: {
          rules: [
            { 
              test: /\.m?js$/,
              exclude: /(node_modules|bower_components)/,
              use: {
                loader: 'babel-loader',
                options: {
                  presets: ['@babel/preset-env']
                }
              }
            },
            {
              test: /\.css$/i,
              use: ["style-loader", "css-loader"],
            },
          ]
      },
      devServer: {
          contentBase: './dist',
          open: true
        },
      plugins: [
          new CleanWebpackPlugin(),
      ],
  };