'use strict'; const webpack = require('webpack'); const path = require('path'); module.exports = { resolve: { extensions: ['.js', '.jsx'] }, entry: { vendor: [ 'babel-polyfill', 'react', 'react-dom', 'redux', 'react-router-dom' ] }, output: { path: path.resolve(__dirname, 'public'), // this will generate vendor.bundle.js // commons chunk plugin will also vendor.bundle.js // the benefit is we reuse the vendor