text: const path = require('path')
  const webpack = require('webpack')
  const HtmlWebPackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: ['@babel/polyfill', path.resolve(__dirname, 'src') + '/index.js'],
    output: {
      path: path.resolve(__dirname, 'dev'),
      filename: 'bundle.js'
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader'
          }
        },
        // {
        //   test: /\.(scss|css)$/,
        //   use: [
        //     {
        //       loader: 'style-loader'
        //     },
        //     {
        //       loader: 'css-loader'
        //     },
        //     {
        //       loader: 'sass-loader'
        //     }
        //   ]
        // },
        {
          test: /\.(png|svg|gif|jpg|ttf|eot|woff|woff2)$/,
          use: {
            loader: 'url-loader'
          }
        }
      ]
    },
    plugins: [
      new HtmlWebPackPlugin({
        template: './src/index.html',
        filename: 'index.html'
      }),
      new webpack.SourceMapDevToolPlugin(),
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NamedModulesPlugin()
    ],
    devServer: {
      hot: true,
      historyApiFallback: true
    }
  }
  