text: const path = require('path');
  const HtmlWebPackPlugin = require('html-webpack-plugin');
  const webpack = require('webpack');
  
  module.exports = {
    resolve: {
      alias: {
        components: path.resolve(__dirname, 'src/components'),
        stores: path.resolve(__dirname, 'src/stores')
      }
    },
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader'
          }
        },
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: ['babel-loader', 'eslint-loader']
        },
        {
          test: /\.html$/,
          use: [
            {
              loader: 'html-loader',
              options: {minimize: true}
            }
          ]
        },
        {
          test: /\.css$/,
          use: 'raw-loader'
        }
      ]
    },
    plugins: [
      new HtmlWebPackPlugin({
        template: './src/index.html',
        filename: './index.html'
      }),
      new webpack.NamedModulesPlugin(),
      // new webpack.HotModuleReplacementPlugin()
    ],
    devServer: {
      contentBase: path.join(__dirname, "dist"),
      host: 'localhost',
      // hot: true,
    },
    devtool: 'cheap-module-source-map'
  };
  