text: const webpack = require('webpack');
  const path = require('path');
  
  module.exports = {
      entry: ['./src/index.js'],
  
      output: {
          path: path.resolve(__dirname, 'dist'),
          filename: 'bundle.js'
      },
  
      devtool: 'source-map',
  
      devServer: {
          hot: true,
          inline: true,
          publicPath: '/dist/'
      },
  
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  include: path.join(__dirname, 'src'),
                  use: [{
                      loader: 'babel-loader',
                  }]
              },
          ]
      },
  
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
          new webpack.NoEmitOnErrorsPlugin(),
          new webpack.optimize.OccurrenceOrderPlugin(),
      ]
  };