text: require('babel-polyfill')
  const webpack = require('webpack')
  const html = require('html-webpack-plugin')
  const path = require('path')
  
  module.exports = {
      entry: ['babel-polyfill', './src/index.js'],
      output: {
          filename: 'bundle.js',
          path: path.join(__dirname, 'dist')
      },
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader'
                  }
              }, {
                  test: /\.styl$/,
                  exclude: /node_modules/,
                  use: [
                      {loader: 'style-loader'},
                      {loader: 'css-loader'},
                      {loader: 'stylus-loader'},
  
                  ]
              }
          ]
      },
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
          new html({           
              title: "e-commerce dApp",
              template: './src/index.ejs',
              hash: true
          })
      ]
  }
  