text: const path = require('path');
  
  module.exports = {
    entry: './src/index.js',
    output: {
      filename: './assets/bundle.js',
      path: path.resolve(__dirname, './dist'),
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: [{
            loader: 'babel-loader',
            options: { presets: ['es2015'] },
          }],
        },
        {
          test: /\.css$/,
          use: ['style-loader', 'css-loader'],
        },
      ],
    },
    devServer: {
      host: 'localhost',
      port: 5000,
      contentBase: './dist',
      open: true,
      openPage: '',
    },
  };
  