text: const webpack = require('webpack')
  const path = require('path')
  const CleanWebpackPlugin = require('clean-webpack-plugin')
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  
  module.exports = {
    entry: {
      app: './src/index.js',
      another: './src/other-module.js'
    },
    output: {
      filename: '[name].bundle.js',
      path: path.resolve(__dirname, 'dist')
    },
    plugins: [
      new CleanWebpackPlugin(['dist']),
      new HtmlWebpackPlugin({
        title: 'Production'
      }),
      new webpack.optimize.CommonsChunkPlugin({
        name: 'common'
      })
    ]
  }