text: const path = require('path');
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
  
  module.exports = {
    entry: path.resolve(__dirname, 'src', 'index.js'),
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: `bundle.js`,
      publicPath: '/',
    },
    resolve: {
      alias: {
        components: path.resolve(__dirname, 'src', 'components'),
        containers: path.resolve(__dirname, 'src', 'containers'),
        actions: path.resolve(__dirname, 'src', 'actions'),
        reducers: path.resolve(__dirname, 'src', 'reducers'),
        selectors: path.resolve(__dirname, 'src', 'selectors'),
      },
      extensions: ['.js', '.jsx'],
    },
    module: {
      rules: [
        {
          test:/\.jsx?$/,
          exclude: [/node_modules/],
          use: {
            loader: 'babel-loader',
          }
        },
        {
          test: /\.(sa|sc|c)ss$/,
          use: [
            {
              loader: MiniCssExtractPlugin.loader,
              options: {
                hmr: process.env.NODE_ENV === 'development',
              },
            },
            'css-loader',
            'sass-loader'
          ]
        }
      ]
    },
    devServer: {
      historyApiFallback: true,
    },
    plugins: [
      new MiniCssExtractPlugin({
        filename: `[name].css`,
      }),
      new HtmlWebpackPlugin({
        template: path.resolve(__dirname, 'src', 'index.html'),
        filename: 'index.html',
      }),
      new MomentLocalesPlugin({
        localesToKeep: ['ru']
      })
    ],
  };