Slide 77
Slide 77 text
var path = require("path");
var CommonsChunkPlugin = require("../../lib/
optimize/CommonsChunkPlugin");
module.exports = {
entry: {
pageA: "./pageA",
pageB: "./pageB"
},
output: {
path: path.join(__dirname, "js"),
filename: "[name].bundle.js",
chunkFilename: "[id].chunk.js"
},
plugins: [
new CommonsChunkPlugin("commons.js")
]
}