text: const path = require('path')
  const webpack = require('webpack')
  
  module.exports = {
    target: 'node',
    entry: {
      main: './src/main.js',
      list: './src/list.js',
    },
    output: {
      path: path.join(__dirname, 'dist'),
    },
    node: {
      __dirname: true,
    },
    module: {
      rules: [
        {
          test: /\.?js$/,
          use: [
            {
              loader: 'babel-loader',
            },
            {
              loader: 'shebang-loader',
            },
          ],
        },
      ],
    },
    plugins: [
      new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }),
    ],
  }
  