text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = {
      entry: './src/js/index.js',
      output: {
          path: __dirname + '/dist',
          filename: 'bundle.js'
      },
      module: {
          rules: [
              {
                  test: [/.css$|.scss$/],
                  use: [
                      'style-loader',
                      'css-loader',
                      'sass-loader'
                  ]
              }
          ]
      },
      plugins: [
          new HtmlWebpackPlugin({
              template: './src/index.html',
              inject: true,
              filename: 'index.html'
          }),
      ],
      devServer: {
          contentBase: path.join(__dirname, 'dist'),
          compress: true,
          port: 8080
      }
  };