pjosephraj
3/26/2017 - 7:45 AM

From https://blog.madewithenvy.com/getting-started-with-webpack-2-ed2b86c68783#.c8s56z51m

const path = require('path');
const webpack = require('webpack');
module.exports = {
  context: path.resolve(__dirname, './src'),
  entry: {
    app: ['./home.js', './events.js', './vendor.js'],
  },
  output: {
    path: path.resolve(__dirname, './dist'),
    filename: '[name].bundle.js',
  },
};