text: const path = require('path');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const ESLintPlugin = require('eslint-webpack-plugin');
  
  module.exports = {
    mode: 'development',
    entry: './src/reporter.js',
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: 'reporter.js'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader',
            options: {
              presets: ['@babel/preset-env']
            }
          }
        }
      ]
    },
    module: {
      rules: [
        {
          test: /\.s[ac]ss$/i,
          use: ExtractTextPlugin.extract({
            fallback: 'style-loader',
            use: ['css-loader', 'sass-loader', 'postcss-loader']
          })
        }
      ]
    },
    plugins: [
      new ExtractTextPlugin('style.css'),
      new ESLintPlugin({
        files: 'src/'
      })
    ]
  };
  